How can I make the current page the starting page for a user's browser from JavaScript?

Troy Niven

There is a script for this, but it only works in Internet Explorer version 5 and above.

<script type="text/javascript" language="javascript">
if (document.all && navigator.appVersion.indexOf("5.") != -1) { 
document.write('<a onMouseOver="window.status='Make this your Home Page.'; return true;" HREF="javascript:void(0)"' 
+ 'onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.jguru.com/')">Make This Page Your Homepage!</a>');
This script prints out a clickable link, only for people with IE5 or higher.

Just change the http://www.jguru.com/ part of the script, to the exact URL, you want people to make their home page.

When the user clicks on the link, they will be asked Would you like to set your Home Page to 'www.jguru.com/'?