Today is . Page created 03/08/06, updated 06/09/06

Set Homepage Link


We have this configured to set our Main Page as your homepage.

A llow the visitor to set your site as their homepage with a link. This script works best in Internet Explorer, but also displays the appropriate information based on browser type.

W e have tested the code in IE6.0, Firefox1.5.0.1, Opera8.52, Netscape7.02, Netscape8.1 and AOL Explorer1.2. This script worked well in all platforms with the exception of Opera8.52 where it will "Not" work. A variations was observed in Firefox1.5.0.1, Netscape7.02, Netscape8.1 and AOL Explorer1.2.

  1. Variation Observed:
  2. Instead of clicking on the link to make page your desiginated homepage, the below message will appear.
  3. "Drag this link onto your Home button to make this your Home Page".

For Your Information For your Information:     If you do not know howto drag and drop, it is extremely simple. Just hold down the left button on your mouse over the text link and drag it into the little house at the top of your browser that says "Home". Thats all there is to "Drag and Drop".

D epending on your knowledge of HTML and javascripts, this is an easy one part copy and paste code with minimal reconfigurations that goe in the <BODY> section of your document wherever you want it to appear.

<BODY> Section Reconfigurations

<!-- Begin
// If it's Internet Explorer, use automatic link
// Be sure to change the "http://www.YourWebSiteHere.com\"
// to the URL you want them to bookmark.
if (document.all){
  document.write('<A HREF="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.YourWebSiteHere.com\');">');
document.write('<font size="5" color=00ffff face=arial><B>Click Here to Make My Web Page Your Homepage</B></font></a>');

T he above reconfigurations are the only ones to be made. They are pretty straight forward and self-explanatory.

W e hope our tutorial was easy to follow and we covered everything in detail. If you would like to add this effect into your pages, grab the respective below link and you are there. If you have any problems with this or anything else, feel free to consult our FAQ ] and if you can't find the answer there, contact us ].
Get Code Here ]   [ Rate This Page ]