I have been depressed by DOM operations in AJAX for several days. Today I finally realized that self-learning is bitter, and a bitter snot is a tear. I will give some lessons, wake up later, and the old bird will stop watching it.
1. do not confuse
AJAX is called "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML). It is a Web page development technology used to create interactive web applications.
Asynchronous indicates Asynchronous,
In addition, both javascript and xml are
Because the media code of a windows mediaplayer can only be used in IE, the following code does not support FF. Function to control media playback through external buttons. Webjx. Com
Http://www.w3.org/TR/html4/loose.dtd> untitled document
Webpage
Difference between js setTimeout and setInterval, js setinterval js settimeout setinterval window. setinterval flash setintervalSetinterval parameter clearing setinterval asp setinterval as setinterval stop
Let's take a look at the example to
Several js functions for beginners,
Function JugeComment (myform )//Determines whether the user name is empty and sets it to focus{If (document. myform. UserName. value = ""){Alert ("your user name cannot be blank! ");Document. myform. UserName.
Hide the toolbar in the browser that jumps out when the mouse moves to the imageOr
Open, save as, attribute, print, and other 14 JS Code■ Enable ■
■ Save As ■
■ Attribute ■
■ Print ■
■ Page settings ■
■ Refresh ■
■ Import to
By default, FireFox does not support innerText, but it has the same function as innerText in textContent. The usage is as follows:
Document. write (document. body. textContent );
It is a little uncomfortable for people who are used to using
Now the browser uses multiple windows. Sometimes we close the Page accidentally when writing an article. Next I will introduce you to a prompt when we close the unsaved page, if you click "OK", it will be closed.
Example 1
The Code is as
This article will introduce you to the array functions commonly used in JavaScript. The most common functions are join, concat, pash, shift, sort, and so on, I will introduce it to you below.
Array Operation Functions
Join (delimiter) concatenates
In js, when both the parent and child pages belong to the same domain, the js methods between them can be called each other. You can specify the object to which the function belongs before calling the method. On the parent page, you can obtain the
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service