Home : Internet : JavaScript : Homepage

Make Your Web Page the User's Home Page

This page shows how to create a link or button which allows a visitor to make your web page their browser's home page. This only works with Internet Explorer 5+.

There are two options shown below, for a text link and button. Note that this method can be used with any event handler, but be very careful - you should never try to force this on anyone. In any case, the user must agree to setting their new home page so you can't do it without them knowing.


Text Link

To make a text link like this:

Make MediaCollege.com your home page

Use the following code (change the URL to your own):

<span style="cursor:hand; color:blue; text-decoration:underline" 
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.mediacollege.com');">
Make MediaCollege.com your home page
</span>

Button

To make a button like this:

Use the following code (change the URL to your own):

<input type="button" value="Make MediaCollege.com Your Home Page" 
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.mediacollege.com')">
Subscribe to us on YouTube