//Set as homepagefunction setHomePage () {if(document.all) {Document.body.style.behavior= ' url (#default #homepage) '; Document.body.setHomePage (' Http://www.87cool.com '); } Else if(Window.sidebar) {if(window.netscape) {Try{Netscape.security.PrivilegeManager.enablePrivilege ("Universalxpconnect"); } Catch(e) {alert ("This action is rejected by the browser, if you want to enable the feature, enter About:config in the Address bar, and then signed.applets.codebase_principal_support the item value to True"); }} var prefs= Components.classes[' @mozilla. Org/preferences-service;1 '].getservice (Components.interfaces.nsIPrefBranch); Prefs.setcharpref (' Browser.startup.homepage ', ' http://www.87cool.com '); }}//add to Favorite folderfunction Addfavorite () {var title=Document.title; var URL=Location.href; if(Window.sidebar) {window.sidebar.addPanel (title, URL,""); } Else if(document.all) {window.external.AddFavorite (URL, title); } Else { return true; }}
Website Collection function code