JS's BOM programming

Source: Internet
Author: User

The browser object is divided into: Window object: Windows Location object: Address Bar Histroy object: History bar Screen object: Onscreen Document object: HTML documents3) Window object (emphasis)  Note: Because the Window object is used too often, JS can let us omit the Window object name does not write   common method:  hint   alert ();   Cue box   confirm ()   Inquiry prompt   prompt ()     input prompt    new window   open ()     opens a new Window    Timing   setinterval ()   timer, 1 calls per n milliseconds specified function (multiple calls)   Clearinterval ()   Purge timer   SetTimeout ()     timer (call 1 times)   cleartimeout ()   Clear Timer    window change (ie support, Firefox not supported)   Moveby ()       Move the window each time the specified number of images   moveTo ()       to move the window to the specified number of images   Resizeby ()     Change the window size to the specified number of images   Resizeto ()     Change the window size to the specified image number   4) Location: Control Address bar   properties: href     Change the address of the URL, jump page   method: Reload ()   Refresh the current page   5) Historical: Control History bar   method:  forward (): Forward to next page   Back ()  : Rewind to Previous page  go (integer):     jumps to a specified page. Positive: Forward   negative: Back    6) Screen: Control screens (through which we get these property values to help us develop, rarely to change these values)  availwidth: Width (except window taskbar)  availheight: Height (except window taskbar)  width: Width  heighT: Height

JS BOM Programming

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.