View Full Version : Users Browser Homepage Default
JeStEr
07-30-2002, 08:07 PM
Is there a javascript that when a user clicks on the link (image) it plays a sound and then goes to the users default homepage in their browser?
(typeof window.home != 'undefined') ? window.home() : window.location.href = 'about:home';
That will go to the homepage in IE4+ and NS4+.
JeStEr
07-30-2002, 09:04 PM
do i put this in the <head> of the html or the <body> of the html and do i have to put a <script> before and a </script> after the javascript you gave me or just put it in as posted.
<a href="#" onclick="(typeof window.home != 'undefined') ? window.home() : window.location.href = 'about:home';">go home</a>
would be one way to apply it.
JeStEr
07-31-2002, 06:57 PM
thanks
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.