Bookmark this website compatible with Firefox IE

Source: Internet
Author: User


<script type= "Text/javascript";
 
function Addfavorite (sURL, stitle) {
try {
Window.external.addFavorite (sURL, stitle);
}
catch (e) {
try {
Window.sidebar.addPanel (stitle, sURL, "");
}  
catch (E) {
Alert ("Add to collection failed, use ctrl+d for adding");
}
}
}
function Sethome (obj, vrl) {
try {
Obj.style.behavior = ' url (#default #homepage) '; Obj.sethomepage (VRL);
}
catch (e) {
I f (window.netscape) {
try {
Netscape.security.PrivilegeManager.enablePrivilege ("Uni Versalxpconnect ");
}
catch (e) {
Alert ("This operation was rejected by the browser! \ n Please enter "About:config" in the browser address bar and return to \ n then set the value of [Signed.applets.codebase_principal_support] to ' true ' and double click. ");
}
var prefs = components.classes[' @mozilla. Org/preferences-service;1 '].getservice ( Components.interfaces.nsIPrefBranch);
Prefs.setcharpref (' Browser.startup.homepage ', VRL);
}
}
}
</script>


<a onclick= "Sethome (this,window.location)" style= "Cursor:pointer;" > Homepage </a>
<a onclick= "Addfavorite (window.location,document.title)" style= "Cursor:pointer;" > Collection of the Site </a>

Bookmark this website compatible with Firefox IE

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.