<a href="#" onClick="this.style.behavior="url(#default#homepage)"; this.setHomePage("http://gazetam.net/"); return false;"> Сделать страницу стартовой</a> 

Something this code is not strong and works.

    2 answers 2

    How can I set the default homepage in FF and Chrome via javascript?

      Maybe the code does not work, because in onclick = "" do you use several pairs of identical quotes? This is forbidden, try this:

       <a href="#" onсlick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://gazetam.net/'); return false;"> Сделать страницу стартовой</a> 
      • Why, then, is "my" method indicated everywhere? disinformation? - new_russian_man
      • It may well be) - metazet pm