Statement: The material used in this column is written by the VIP students of the Kay Academy, who has the right to be anonymous and has the final right to interpret the article; The Edith Academy is designed to promote students to learn from each other on the basis of public notes.
Windows Explorer Window object represents the entire window
The window properties are as follows:
Closed Returns True | False to determine whether the window is closed
Innerheight returns the height of the inside page
Innerwidth return inside page width
Opener returning a Window object
outerheight return to outer window height
Outerwidth returns the width of the outer window
Parent returns to parents window
The window method is as follows:
Close (); Close window
Alert ("String"); Popup dialog box
Confirm ("String"); Popup Confirm Cancel Box Cancel return false confirm return True
Prompt ("String"); Popup input Box returns string type
Scrollby (x, y); Scroll up and down by Pixel X to the left and right y
Scroll up
ScrollTo (); Scroll to the specified coordinates
SetTimeout ("Function call", time ms); How long does the rest take to trigger a function call
Open ("url"); Used to open a window many viewers do not support
Window Event:
Onresize window size Changes trigger event
There are mouse events and keyboard events really need to go to Baidu to see what happened!
Window.document Tag Document Object Find what tag tag value and so on
Document property:
Domain return field
Referrer returns the current domain name as well as URL
URL returns the most comprehensive URL currently
LastModified returns the current page time
Tile return page title You can also tile= "title" to set the title yourself
Document method
getElementById ("id"); Give him a tag ID. Returns a Tagged object
Getelementbyname ("name"); Find tagged objects by nana
getElementsByTagName (); Search by Tag name
Writer ("String"); Output
Writerln ("String"); Output but he'll be empty on the last side.
Window.history A history on a webpage
Window.location Address bar/HTTP/This line
Window.scree Window object to get the browser window width or something
Window Explorer Windows object