Setting the default homepage in JavaScript

How to create a link to set the user’s home page to my URL?

+3
source share
3 answers

As some people have already answered, this was possible in Internet Explorer (before IE 7, I think maybe not so), using something similar to

document.setHomePage('www.example.com');

I don’t think any browser supports it. However, I will definitely try to convince you otherwise. Most people do not want their settings to automatically change, even if it is caused by a mouse click or other action. It is also likely that overly sophisticated “defense” programs will leap around the world and harm them as a malicious attack.

+7

, Internet Explorer

Make my Page your
<a href="javascript:history.go(0)" onClick="this.style.behavior='url(#default#homepage)';
 this.setHomePage('http://www.test.de');">Startpage</a>.
+2

, , ? IE - :

this.setHomePage('http://www.mysite.com');

, Firefox.

0

All Articles