开发者

setHomePage IE no prompt

I'm using this script to set my site has home page on IE (I know it is not possible on FF and CH):

if (document.all) { 
  document.body.style.behavior='url(#default#homepage)'; 
  document.body.setHomePage('myurl'); 
}  

But this function shows always开发者_Python百科 a confirmation prompt.

Is possible to setHomePage without showing the prompt?


No.

I personally fixed several bugs in IE6 the allowed people to abuse the homepage prompt.

It is 100% by-design that you cannot change the user's homepage without their knowledge and consent.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜