Window Explorer Windows object

Source: Internet
Author: User
Tags tag name

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

Related Article

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.