admin管理员组文章数量:1303404
i need script in jquery / javascript that make the specific site as the homepage in the browser, i need it patible for all browsers , if that possible .
i dont mean it should be done automatically ,
thanks.
i need script in jquery / javascript that make the specific site as the homepage in the browser, i need it patible for all browsers , if that possible .
i dont mean it should be done automatically ,
thanks.
Share edited Dec 2, 2009 at 14:28 Haim Evgi asked Dec 2, 2009 at 13:17 Haim EvgiHaim Evgi 126k46 gold badges222 silver badges226 bronze badges 1- Where it is/was possible, it is typically an option to disable it. Many people do this because it's in the very least annoying and potentially it's a security risk. – cletus Commented Dec 2, 2009 at 13:24
3 Answers
Reset to default 7In Internet Explorer 7 and earlier it was possible to do this using
document.setHomePage("http://www.mywebsite./");
However, this is not possible in more recent version (as it is considered a security risk) and has never been possible in other browsers like Firefox.
The best fallback is to actually instruct the user how to change home page instead of programatically trying to acplish it.
In Firefox (I'm not sure about other browsers) it is possible for the user to drag a link and drop it on the home button, and thereby (after confirming) changing the start page. You may utilize this by instructing the user to drag an image (that is inside an anchor tag linking to your website) and drop it on the home button.
This isn't possible. That would be a security risk.
You can't. Not since IE7.
<!--[if IE]>
Click on the "down" arrow just to the right of the "house" icon in
your Internet Explorer toolbar and choose "Add or Change Home Page."
Then click on "Use this webpage as your only home page" or
"Add this webpage to your home page tabs," depending on
your preference.
<![endif]-->
<![if !IE]>
To make this page your home page, just drag the icon to the left of the
URL in your location bar onto the "Home" icon in the "house" icon in
your toolbar. Some browsers do this differently. You can always set your
home page through the preferences of your browser.
<![endif]>
本文标签:
版权声明:本文标题:javascript - i need script in jquery that make the page as your default home page website in the browser - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741703856a2393446.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论