Quickly get the front-end JS interview-Chapter 7

 Chapter 7 JS-Web-API-BOM

BOM (Browser Object Model) provides many objects for accessing browser functions

topic

  1. How to identify the type of browser
  2. Analysis and disassembly of various parts of url

Knowledge point

  1. navigator object recognition browser
  2. Screen object screen information, width and height
  3. Location object provides information about the document loaded in the current window, and parses the URL into independent fragments
  4. 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?

Published 26 original articles · won 6 · views 1385

Guess you like

Origin blog.csdn.net/Sabrina_cc/article/details/105530002