-1

i have a web application using asp.net, c# and MVC3.

I want to set my website as default home page to all browsers when i click the link button of my web site. how i can done it ? using code ?? plz help me ..

Avinash
  • 3,231
  • 10
  • 36
  • 46
  • Check this http://stackoverflow.com/questions/946189/how-can-i-set-default-homepage-in-ff-and-chrome-via-javascript . Answered 2 years back :) – Sandeep G B Sep 21 '11 at 09:09
  • As far as I know you can do it only with Javascript. Look here - http://scripts.tropicalpcsolutions.com/html/javascript/save-website-as-homepage-javascript.html – Dmitry Sep 21 '11 at 09:13
  • @Dmitry Kotov he is asking about setting the homepage ... indeed a duplicate – V4Vendetta Sep 21 '11 at 09:15
  • @V4Vendetta, thanks for comment. I've update my link. One more link http://stackoverflow.com/questions/438108/set-default-home-page-in-javascript – Dmitry Sep 21 '11 at 09:17

1 Answers1

0

You can't do that anymore since IE6 or 7. I don't think it ever worked in Firefox and other browsers. IE used to have a document.sethomepage() method.

Manu Clementz
  • 1,807
  • 12
  • 19