Now that HTML5 is strong, how do you make a Web page look like a local app? Only Chrome browser can be implemented. (But of course you can only use HTML, you can't operate the local system)
Take Baidu as an example:
- Use Chrome to open Baidu https://www.baidu.com/
- Open Chrome menu More tools Create app shortcuts
- You'll create a shortcut to open a Web site on your desktop and open a shortcut, and the browser has no address bar and looks like an app.
- But there is also the title bar, how to run the full screen? Add the parameter --kioskafter the app's shortcut to full screen.
- Of course, if you don't have a Web site or need to be networked, you can access local HTML directly. Of course, it's best to open local file access, add parameters after shortcut --allow-file-access-from-files
- You can also change the shortcut to a nice icon.
The contents of the shortcut are as follows:
"C:\Program Files (x86) \google\chrome\application\chrome.exe"--allow-file-access-from-files--app=file:///d:/work /web/index.html--kiosk
Make a local HTML5 full screen app with Chrome