JavaScript document and Window object detailed description (1/3)

Source: Internet
Author: User

One, Window object
-------------------------------------------------- -------------------
Object Properties
window//window itself
Window.self//reference to the window window=window.self
Window.name//name for Windows
Window.defaultstatus//Set window status bar information
Window.location//url address, equipped with this property to open a new page
-------------------------------------------------- -------------------
Object methods
Window.alert ("text")//Prompt Info Session box
Window.confirm ("text")//Confirmation Session Box
Window.prompt ("text")//Require keyboard input session box
Window.setintervel ("Action", time)//every interval specified (milliseconds) to perform an action
Window.clearinterval ()//clearance time equipped with the function is to terminate the reincarnation
Window.settimeout (action,time)//interval specified time (in milliseconds) perform one action
window.open ()//Open a new window
Window.close ()//Close Windows
-------------------------------------------------- -------------------
Member objects
Window.event
Window.document//See Document Object detailed
Window.history
Window.screen
Window.navigator
window.external
-------------------------------------------------- -------------------
Window.history objects
Number of window.history.length//browsed pages
History.back ()//Retreat
History.forward ()//Progress
History.go (i)//forward or head back to page I of history
I>0 Progress, I<0 Retreat
-------------------------------------------------- -------------------
Window.screen objects
Window.screen.width//Screen width
Window.screen.height//Screen height
Window.screen.colordepth//Screen color depth
Window.screen.availwidth//Available width
Window.screen.availheight//Available height (remove height of taskbar)
-------------------------------------------------- -------------------
window.external objects
Window.external.addfavorite ("Address", "title")//Add the website to the Preservation folder
-------------------------------------------------- -------------------
Window.navigator objects
Window.navigator.appcodename//Browser code name
Window.navigator.appname//Browser pace name
Window.navigator.appminorversion//Browser patch version
Window.navigator.cpuclass//CPU Type x86
Window.navigator.platform//Operating system type Win32
Window.navigator.plugins
Window.navigator.ops Tutorial Profile
Window.navigator.userprofile
Window.navigator.systemlanguage//Customer System language ZH-CN Simplified Chinese
Window.navigator.userlanguage//user language, ditto
Window.navigator.appversion//Browser version (including system version)
Window.navigator.useragent
Window.navigator.online//user no online
Whether the window.navigator.cookieenabled//browser supports cookies
Window.navigator.mimetypes
==================================================

Home 1 2 3 last
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.