For more information, see. Occasionally improve ps: Test in FF2.0 and ie6 to ensure correct input, remember to add readonly/********************************** to the control /********************************* ************************
* Usage
* The
JavaScript provides several dialog box functions, but the functions are very limited. Although you can create more rich dialog box functions by using mode forms in IE, only IE is supported after all. In order to get richer user-defined dialog box
I have read a lot of jsdom learning materials and found this is more detailed. I have learned a lot of js dom learning materials and found this is more detailed.
I. DOM Basics1. node levelDocument-the top-level node. All other nodes are attached to
Obviously, the effect is very practical. For this effect, we do not explain how to use the effect library, but how to create a similar effect and maintain its availability, unobtrusive, and Maintainability (to enable future maintainers, modify the
I will share some of my experiences with jacascript over the past few days. It may not be very comprehensive, but it should be suitable for some people who want to learn the basics. In the future, I will continue to develop the php language basics
No matter what programs we use, we often use js code. We recommend that you add them to your favorites so that you can use the things you often learn when you are new to school ~
That is, a page uses two iframe to call the content and implement page navigation, which is easier to control and can control the control block in the middle. In fact, it is also an iframe and Its width is defined as 10.
Then, in his internal js,
The following js functions format the date. The functions are written in one row, so you can directly take charge of the application.
The Code is as follows:
Function DateUtil () {}/*** function: Format time * example: DateUtil. format
JQuery is another excellent Javascript framework after prototype. Its purpose is to write less code and do more things. It is a lightweight js Library (only 21 k after compression), which is not suitable for other js libraries. It is compatible with
The readability of JSON and XML is comparable. One side is the suggested syntax and the other side is the standard tag format, which makes it difficult to distinguish between the two. · Readability
The readability of JSON and XML is comparable. One
The jquery instance code of Douban.com has good results, so that you can learn the method to be executed after the document is loaded (see the jquery document)
Generally, all events should be bound during document loading, but there is one exception.
URL urlencode encryption function, which is mainly used to call Chinese directories. The following function is written in a js file and can be called.
Modify the URL to encode
Script function UrlEncode (str) {return transform (str);} function
Onpropertychange can capture changes in each input value. For example, when the value of an object is changed, onpropertychange can capture each change, while onchange can only capture objects after an event is executed. When entering data in the
The following code is compatible with firefox text input length prompts. The length of the input characters is displayed in real time. When the input length is exceeded, it is automatically truncated. To limit the length of text input, maxlength is
You can press the key on the keyboard to display the keyboard action and the keyCode value.
function init () {document. onkeydown = showKeyDown document. onkeyup = showKeyUp document. onkeypress = showKeyPress} function showKeyDown (evt) {evt =
The prototype attribute of the object in JavaScript, which can return the reference of the Object Type prototype. This is a pretty straightforward explanation. To understand it, you must first correctly understand the concepts of object types and
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