Home  >  Article  >  Backend Development  >  How to use JavaScript to set a shortcut to the mobile homepage?

How to use JavaScript to set a shortcut to the mobile homepage?

WBOY
WBOYOriginal
2016-12-05 13:44:173025browse

It is required to use a mobile browser to open a website and click the "Add to Desktop" button in the lower right corner. This page will generate a shortcut to the mobile desktop with the website's logo! Click the icon on the desktop to go directly to the home page!
Please give me some advice! ! ! Thank you very much in advance!

html code is:

<code><span id="todesk"><a href="http://www.baidu.com">加到桌面</a></span></code>

This is known on Baidu; it feels hard to understand! !
https://zhidao.baidu.com/ques...
Mobile home page:
How to use JavaScript to set a shortcut to the mobile homepage?

Add shortcut to desktop:
How to use JavaScript to set a shortcut to the mobile homepage?

Reply content:

It is required to use a mobile browser to open a website and click the "Add to Desktop" button in the lower right corner. This page will generate a shortcut to the mobile desktop with the website's logo! Click the icon on the desktop to go directly to the home page!
Please give me some advice! ! ! Thank you very much in advance!

html code is:

<code><span id="todesk"><a href="http://www.baidu.com">加到桌面</a></span></code>

This is known on Baidu; it feels hard to understand! !
https://zhidao.baidu.com/ques...
Mobile home page:
How to use JavaScript to set a shortcut to the mobile homepage?

Add shortcut to desktop:
How to use JavaScript to set a shortcut to the mobile homepage?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn