View Full Version : Users Browser Homepage Default

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?

07-30-2002, 08:19 PM
(typeof window.home != 'undefined') ? window.home() : window.location.href = 'about:home';

That will go to the homepage in IE4+ and NS4+.

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.

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

07-31-2002, 06:57 PM

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum