Chapter 7 JS-Web-API-BOM
BOM (Browser Object Model) provides many objects for accessing browser functions
topic
- How to identify the type of browser
- Analysis and disassembly of various parts of url
Knowledge point
- navigator object recognition browser
- Screen object screen information, width and height
- Location object provides information about the document loaded in the current window, and parses the URL into independent fragments
- History saves the user's online history records, using the go method can realize the history record jump
userAgent current browser information
Q & A
1. How to identify the browser type
2. How to disassemble the various parts of URL?