开发者

How to set homepage using script

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜