Get the App
SLTechnology News&Howtos  ›  Development  › 

How to add to the collection and set the home page of the asp.net website that is perfectly compatible with ie and firefox

Shulou Source: shulou.com Published: 2022-06-03 09:09:40 10月04日 Update

This article introduces the "how to achieve perfect compatibility between ie and firefox asp.net website to join the collection and set up the home page" related knowledge, in the actual case operation process, many people will encounter such a dilemma, and then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!

The copy code is as follows:

Function AddFavorite (sURL, sTitle) {

Try {

Window.external.addFavorite (sURL, sTitle)

}

Catch (e) {

Try {

Window.sidebar.addPanel (sTitle, sURL, "")

}

Catch (e) {

Alert ("failed to add favorites, please use Ctrl+D to add")

}

}

}

Function SetHome (obj, vrl) {

Try {

Obj.style.behavior = 'url (# default#homepage)'; obj.setHomePage (vrl)

}

Catch (e) {

If (window.netscape) {

Try {

Netscape.security.PrivilegeManager.enablePrivilege ("UniversalXPConnect")

}

Catch (e) {

Alert ("this operation is rejected by the browser!\ nPlease enter" about:config "in the browser address bar and enter\ nand then set the value of [signed.applets.codebase_principal_support] to 'true', double-click.")

}

Var prefs = Components.classes ['@ mozilla.org/preferences-service;1'] .getService (Components.interfaces.nsIPrefBranch)

Prefs.setCharPref ('browser.startup.homepage', vrl)

}

}

}

The copy code is as follows:

*

Tags: Code website home page content more browser knowledge browsing practicality learning next dilemma address reality situation article case editing industry process Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft MySQL OPPO Reno Redmi Huawei