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)