开发者

How to set homepage using script

开发者 https://www.devze.com 2023-03-21 04:28 出处:网络
Look at the below screen shot How to let a website take the control over client\'s b开发者_开发问答rowser to change the Home page?

Look at the below screen shot

How to set homepage using script

How to let a website take the control over client's b开发者_开发问答rowser to change the Home page?

Can this be possible using Java Scripts? I am using ASP.NET/C#. How to change clients Home Page in the above method?


You may simply forget about doing this with javascript. You will be wasting your time.


Here is the code for IE

<FORM>
<INPUT TYPE="button" VALUE="Make This Site Your Home Page" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://microsoft.com');">
</FORM>


For obvious security reasons, you can't set the user's homepage with Javascript. Just ask them to do it themselves.

0

精彩评论

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