Compatible with various browsers to add to favorites and set as homepage JS Code

Source: Internet
Author: User
First of all, I want to add my favorites and set it to the home page for seemingly simple applications. However, there is no perfect solution for compatibility with IE, Firefox, Chrome, Opera, and other browsers.

First of all, add to favorites and set it to the home page. It looks like a simple application. But there is no perfect solution to compatibility with IE, Firefox, Chrome, Opera, and other browsers. If you don't believe it, check the Baidu homepage to see if Baidu uses javascript code to enable compatibility with various browsers and set it as the homepage or add it to favorites. If Baidu is not broken, you still need to try Baidu.
Next, we will publish a code to add to the favorites. This is provided by @ dasheng kids shoes in the official @ PHP beginner group. It is currently compatible with the IE series and Firefox. As for other browsers, in the pop-up window, the system prompts "add to favorites with Ctrl + D ". Check the Code:

 
 

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.