08.30 JavaScript BOM &dom

Source: Internet
Author: User

# BOM (Browser object model)
# # Window
# # # Definition
* window is the global variable of JS in the browser environment
* function is the method of window
* Global variables are properties of window


# # Properties
* Document
* location
* History
* Screen
* Navigator
* Innerwidth Document Area width
* Innerheight Document Area height
* Outerwidth browser window width
* Outerheight browser window height
* Name of the window
* Parent Parents window
* Top Level window
* Number of length sub-windows
* Frames A collection of child windows

< Span style= "COLOR: #808080" > < Span style= "COLOR: #808080" > < Span style= "COLOR: #808080" > < Span style= "COLOR: #808080" >cursor:pointer; the cursor is rendered as a hand;

<button onclick= "window.open (' 01s.html/url ', ' is the opening of this window to the name of this window written on ', ' width=400,height=400 ') ' > set the width height of the open window </ Button>
# # # method
* Alert () alert box
* Confirm () Confirmation box
* Prompt () can enter a bullet frame
* SetInterval ()
* Clearinterval ()
* SetTimeout ()
* Cleartimeout ()
* Open () Opens a new window
* Close () Closes the window
* Print () printing


# # location (address)
# # Properties
* href full URL
* Protocol Agreement
* Hostname Host Name
* Port Port number
* Host hostname and port number
* Pathname File path
* Search Query section
* Hash Anchor part
# # # method
* Reload () reloads the current document.
* Assign () Save record
* REPLACE () does not save record

< Span style= "COLOR: #808080" > < Span style= "COLOR: #b22222" >
## history
# # # Property
* length   history

## # # Method
* back ()    fallback step
*  Forward ()    previous
* go (n)    forward/Backward N-Step

 

< Span style= "COLOR: #808080" > < Span style= "COLOR: #808080" > < Span style= "COLOR: #808080" >
## screen
#### Property
* width   screen width
* height screen height
/span>

 

< Span style= "COLOR: #b22222" > < Span style= "COLOR: #b22222" > < Span style= "COLOR: #808080" >

## Navigator (navigation)
#### property
* useragent     Platform , browser-related information
* platform       platform





# DOM (Document Object model)



# add
# # Browser Kernel
* Kernel should contain render engine \ JS engine
*  rendering engine is responsible for rendering HTML and CSS, JS engine is responsible for running JS
*  It is now mentioned that the browser kernel can also be a single-finger rendering engine

### Common browser kernel
*  webkit    (Chrom Safari)
* blink        (WebKit,   chrome, opera)
* trident      ie
* gecko    firfox
* kestrel   old open gate

### URL URI difference
* uri standard    contains URN and URL
* uri:   Uniform Resource Identifier
* urn: Uniform Resource name
* url: Uniform Resource Locator

08.30 JavaScript BOM &dom

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.