JavaScript Learning note--7.bom (Browser object model)

Source: Internet
Author: User

1. Definition

The browser itself has some objects that can be used without creating them.

Methods in 2.window objects

Alert ()//Bullet box

Confirm ()//Confirm

onclick= "return confirm (' Are you sure you want to delete it? ‘)"

SetInterval ()//Timer

Clearinterval ()//Clear Timer

var timer=setinterval (function () {},1000);//Set Timer

Clearinterval (timer); Clear Timer

SetTimeout ()//single-time timer

Cleartimeout ()//clear one-time timer

Open ()//Opens a new window (more parameters, see Manual)

Closed ()//Close window

Sub-objects in 3.window objects

Document//Documentation

Event//Events

Frames//Sub-frame

Location//Orientation

location= ' URL '; Common redirection methods

Location.reload (TRUE); Refresh Page

History//Historical

History.back (); Back to the previous step

History.go (-2); Return to the specified number of steps

Screen//screens (see Manual)

Clipboarddata//Clipboard

Window.clipboardData.setData ("Text", content)//copy content to clipboard

@zhnoah
Source: http://www.cnblogs.com/zhnoah/
This article is owned by me and the blog Park, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original
The right to pursue legal liability.

JavaScript Learning note--7.bom (Browser object model)

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.