<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