Get the App
SLTechnology News&Howtos  ›  Development  › 

How to add favorites code in js browser

Shulou Source: shulou.com Published: 2022-06-03 05:58:41 11月17日 Update

Js browser to add favorites code how to write, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

Function addfavorite () {if (document.all) {window.external.addFavorite ('http://www.XXX.com','XXX');} else if (window.sidebar) {window.sidebar.addPanel (' XXX', 'http://www.XXX.com', "");}} add to the collection

1. The href attribute is the connection address after adding favorites.

2. Compatible with ie, Firefox and Google browser

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Browsers favorites browsing help code clarity content address home letter this attributes articles novices more Firefox knowledge industry information information channels puzzles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker NVidia MariaDB Shulou Technology macOS