开发者

Set browser as my website as homepage for Firefox using JavaScript [duplicate]

This question already has answers here: 开发者_StackOverflow中文版 Closed 11 years ago.

Possible Duplicate:

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

I have to set my web page as homepage in Firefox using JavaScript. I used an script:

    onclick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.example.com.html');"

It works in Internet Explorer but not in Firefox. Any suggestions?


I don't think it is possible to set a users homepage with Javascript, due to some obvious security reasons.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜