0

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).

Community
  • 1
  • 1

3 Answers3

0

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>

Ben Thomson
  • 558
  • 3
  • 8
  • 25
0

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.

Community
  • 1
  • 1
octern
  • 4,825
  • 21
  • 38
0
<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/

Ajinkya
  • 22,324
  • 33
  • 110
  • 161