One.
HTML: Content.
CSS: Format.
JavaScript: Action.
All tags in HTML can have the name and ID attributes.
Java and JavaScript have little connection.
Java needs to be compiled, and Javascrpt is an explanatory language.
You need to place the JavaScript program in the HTML file. Can be placed in the HTML
Two.
The JavaScript declaration variable uses the var example: var a = "Hello World"; JavaScript variables do not have to declare what type.
Strings can also be compared in size.
Three:
Create object: var a = new object ();
You can add attributes and values directly to an object: example a.xyz = "123";
You can also delete the properties of an object. A.delete ("a");
Passes through A[i] to get the values of each property.
Four
Construction Method:
function person () {
Persion.prototype.name = "Dfs";
}
The prototype keyword is similar to Java's static:
Five:
Window: Global variables for the browser.
All global variables defined belong to the members of the window.
referencing external JavaScript files
<script src = "file name. js" ></script>
Event handler:
All tags can be placed onMouseOver, onmourseout events
body> Tag: onload--the label loading display unLoad before completion;
Simple dialog box: alert (); Confirm (); Prompt ();
Status bar: state;
Timer: SetInterval ();
Window control method: window.open (), Window.close ();
For example: <p onMouseOVer = "alert (')" > </p>
Six:
Doucument: Saves the document information in the HTML file.
Content: Form;paragraph;images;form;table;links, .....
Access all the information on the HTML page through the Doucument object model.
JavaScript First Knowledge