...

View Full Version : Users Browser Homepage Default



JeStEr
07-30-2002, 09: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?

jkd
07-30-2002, 09:19 PM
(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, 10: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.

jkd
07-30-2002, 10:15 PM
<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, 07:57 PM
thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum