View Full Version : Go to inbox using JavaScript
thereal88
09-07-2006, 02:22 PM
Is there a way I can make a button with JS that will redirect you to your gmail inbox or open your Outlook Express or whatever you use for your mail?
-i-dont-know-
09-07-2006, 04:36 PM
When the user is logged in already?
Why do it in JS?
<script type="text/javascript">document.write('<a href="http://www.gmail.com">gmail</a>');</script>
OR just a normal link:
<a href="http://www.gmail.com">gmail</a>
They will automatically go to their inbox if they are logged in.
If you want them to log in using a form on your site, just find the action=" " attribute in the login form for the site you want and copy it onto your own login form. Oh and make sure the input tags have the same names.
Hope that helps.
vBulletin® v3.6.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.