Script to Make Page Default Home Page in Browser  

In IE 5 and later browsers, clicking the link opens the dialog to set the current page as the visitor's homepage. An IE conditional comment prevents the link from showing in other browsers that do not support this. You may set the font with tags within the conditional comment, as shown. An image may also be used instead of the text link shown.

Copy & paste this script where you want it in the body of your page.

Replace the text that you see here in red with the address of your page.

<!--[if IE 5]>
<font face="Arial" size="3">
<A HREF="#"
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.yourdomain.com');">
Make This Your Homepage
</A>
</font>
<![endif]-->



Back to free tools page


© 1997-2005 Digital-Presence All Rights Reserved