What you learn at a novice's school
/Bounce Tips
/Bounce Tips
//Read system time
www.winshell.cn//Point connection run JS display time
//Point submit button Run JS display time
For Back Loop ***************************
Calculator ******************
1.document.write (""); Output statement
The annotation in 2.JS is//
3. Traditional HTML Document order is:document->html-> (head,body)
4. The DOM order in a browser window is:window-> (navigator,screen,history,location,document)
5. Get the name and
Window object in JavaScript
He is the largest object in JavaScript, and it describes a browser window. In general, to reference its properties and methods, do not need to use the "window.xxx" this form, and directly using "XXX". A frames page is
fromCharCode Method
Returns a string from some Unicode character values.
String.fromCharCode ([code1[, code2[, ...) [, Coden]]]
Parameters
String
Required option. is a String object.
Code1, ..., coden
Options available. is the sequence of Unicode
Simulate drag-and-drop principle:
X1 equals Div.offsetleft
Y1 equals div.offsettop
X2 equals Ev.clientx (EV represents event event)
Y2 equals ev.clienty
When we press the mouse on the square, the x2-x1 can be determined. After moving the
Window Browser:
-Location: Address
-History: History
-Document: Documents
-screen: Windows
-Navigator: Help
> 1. External object is the API provided by the browser--**bom**
> 2. These objects are designed and developed by a browser
Amber Net-
JavaScript Unlimited level linkage menu
Amber infinite Level linkage menu-javascript version [Hpmenu v1.0] located in Chau: -----Please select----- Europe Asia Africa Oceania North America South
Copy Code code as follows:
/**
* Get the collection object of XML file attributes
* @param xmldoc XML objects
* @param Name property names such as: User
* @return Return Array Object
* Example XML:
*
*
*
*
* Piglets
*
* 27
*
one, character class
concept: putting separate direct-measure characters into square brackets can be grouped into character classes (character Class).
Note: Red means not particularly clear.
[...] --Indicates that any character in a character
See this topic, perhaps some people will ask a question, JavaScript on behalf of the client, and the session represents the server (do not know if you can understand this).
First of all, I do a rights management, when you need to click on a module,
A JavaScript variable can be either a local variable or a global variable.Private variables can be used in closures.Global VariablesA function can access a variable that is defined internally by a function, such as:Instance
function
The circular variable declaration in JavaScript, where exactly should it be placed?
Habit 1: Do not declare direct use
function Loop (arr) {for
(i = 0; i
Very dangerous use of habits, in general, the loop variable will become a
Localstorage should be a household name? But local storage is much more than that. Before Sessionstorage, and now there is a magical cachestorage. It is used to store the Response object. In other words, it is used to cache HTTP, response. Although
This article discusses two features that make JavaScript functions more expressive: Rest parameters and Parameter defaults.Rest Parameters
In general, we need to create a function with variable parameters, which means that a function can accept any
Below through the code for you to explain, specifically see below:
IE browser and non IE browser is the difference is that IE browser support activexobject, but not IE browser does not support ActiveXObject. When the IE11 browser has not yet
Using the substring () or slice () method (nn4+, ie4+), the specific use of them is described below.
The prototype for substring () is:
String.substring (from, to)
The first argument from specifies the starting position of the
Now in the browser, there is a very interesting feature, you can not refresh the page to modify the browser URL; In the browsing process. You can store your browsing history, and when you click the Back button in your browser, you can surf the
ChildNodes property: Returns an array that contains all the child elements of a given element node.
Childtype property: The returned array contains all types of nodes
NodeValue property: Changing the value of a text node
FirstChild and LastChild
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.