Bom object model
a form
document: returns the HTML document is loaded in the window
location: Returns the URL of the window to load an HTML document
navigator: browser browser returns the current page, the browser contains a list of attributes, including name, version, number and platforms.
screen: Returns the current viewer screen objects
history: Returns the browse window history
two commonly used methods
Alert (); playing box;
Confirm (); popup confirm shells box
prompt (); popup input box
Close (); Close the current window
open (); to open a new window;
var variable = setInterval ( 'method name', time); start timer;
clearInteral (variable name); off timer
Supplementary replace string
string .replace (original string, the replacement string); // replace only the first
string .replace (/ original string / g, a replacement string); // do not increase the original string quotes, replace all
string .replace (/ original string / replace string); // original string without quotes, replace all, ignore case