ECMAScript
1. Syntax
2. Variables: Only use the VAR definition, if the contents of the function using the var definition, then it is a local variable, if not using Var it is a global. Weak type!
3. Data type: Raw data type (Undefined/null/string/number/boolean)
4. Statement:
5. Operator: = = vs. = = =
6. Functions: Two types of notation (named, anonymous)
BOM Object
Window:alert (), Prompt (), confirm (), setinterval (), Clearinterval (), SetTimeout (), cleartimeout ()
History:go (parametric), back (), forward ()
Location:href Property
Event:
OnSubmit () This event is written in the form label and must have a return value.
OnLoad () This event can only be written once and placed in the body tag
Other events are placed in the position of the element that needs to be manipulated. (onclick, onfocus, onblur)
Get element:
document.getElementById ("id")
Gets the value inside the element:
document.getElementById ("id"). Value
Output to page:
Pop-up window: alert ();
Write content to the browser: document.write (content);
Writes to the page at the specified location, InnerHTML
JavaScript Simple Introduction