开发者

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

开发者 https://www.devze.com 2023-01-04 13:48 出处:网络
This question already has answers here: 开发者_StackOverflow中文版 Closed 11 years ago. Possible 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

精彩评论

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