Possible Duplicate:
How can I set default homepage in FF and Chrome via javascript?
I want to create some script or code for a link so that when someone clicks on that link my website become his/her homepage (sorry for bad English).
Possible Duplicate:
How can I set default homepage in FF and Chrome via javascript?
I want to create some script or code for a link so that when someone clicks on that link my website become his/her homepage (sorry for bad English).
Here: http://www.websitegoodies.com/tools/homepage.php
This may depend on the browser however.
<a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('twythm.com');">Clicky</a>
See this question. The answer is that it's possible in IE using this.setHomePage(url)
but can't be done in other modern browsers.
<a href="javascript:if(document.all)window.external.AddFavorite(location.href,document.title);
else if(window.sidebar)window.sidebar.addPanel (document.title,location.href,'');">Bookmark this page</a>
Check this link for details : http://www.hostingfanatic.com/webdev/add-to-bookmarks-javascript/