How to set homepage using script
Look at the below screen shot
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.
精彩评论