开发者

setHomePage IE no prompt

开发者 https://www.devze.com 2023-01-21 03:48 出处:网络
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) {

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

精彩评论

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