DW CS In the onload run recordsetfind.htm found the following Web page special effects error
Directory found: directory with the same name as my software under the c:documents and settingsadministratorapplication data directory.Delete on OK
Tip: You can modify some of the code before running
This JavaScript allows users to select a region and second place in the world, and then in the region of the country, in particular the Pull-down menu changes select region Asia
The upload.html page is as follows
File Upload
The Frameupload.js code is as follows
/*** The specified label [A or Button,input:button simulation for the File selection button, select the completed file can be uploaded via IFrame]* @author
Browser type
⑴ Browser-specific properties⑵ according to UserAgentBrowser version⑴ according to UserAgent
For mobile browsers to judge
1. How to determine whether to use the regular match for mobile terminals,
Matches whether navigator.useragent
When doing a page, if you want to do a link click Do not do anything, or respond to click to complete other things, you can set its properties href = "#", however, this will have a problem is that when the page has a scroll bar, click will return to
Example 1
The code is as follows
Copy Code
function Public_getparentbytagname (element, TagName){var parent = Element.parentnode;var uppertagname = Tagname.touppercase ();If this element is not the desired tag, continue
Closures are a way to access and manipulate external variables within a function, and in general we define variables outside the function for use within functions.
The code is as follows
Copy Code
var a = 1;function fn
settimeout (expression, interaction time)The delay time/interaction time is in Hao seconds (1000ms=1s) settimeout at execution time, after a specified time delay after loading, execute an expression once
SetTimeout at execution time, it executes an
Sample code:
The code is as follows
Copy Code
test1 test2
In JS can be used:
The code is as follows
Copy Code
document.getElementById (' Test '). InnerHTML:
That is,
Syntax uses onerror default has three incoming parameters:
msg: Error messageURL: File where the error residesline: Wrong line of code, integral type123 Window.onerror = function (msg, URL, line) {//some code};For form, the parameters can be
The foreground call is as follows
The code is as follows
Copy Code
onclientclick= "Return Fuccheckjpgandgif" (Form1. File1.value); "
--where File1 is the upload file control
Function code:
The code
Example 1
The code is as follows
Copy Code
New Document Refresh, close, rewind, F5 test
Although the onbeforeunload event has been eliminated by the Web Standard, this is the only event that can be achieved.
In JavaScript, the double and int types are all viewed as number objects, so either typeof 1 or typeof 1.0 returns number. So we can let the JavaScript explain the engine inside out without having to go to the int or double type.
• If you want to
Naming conventions 1. Variable names must be lowercase letters.2. The naming of classes uses camels to name the rules, for example:
Account, EventHandler3. Constants must be declared in the object (class) or in the front of the enumeration variable.
1. The charCodeAt method returns an integer that represents the Unicode encoding of the specified position character.Strobj.charcodeat (Index)DescriptionIndex The zero-based number of the character to be processed. A number with a valid value of 0
If you want to JS access to the functions in flash, you need to register a callback function with Addcallback, let JS to call (AS2 example)
The code is as follows
Copy Code
Import flash.external.*;var methodname:string =
In this blog we talked about the form object and the differences between different browsers when writing JavaScript code and some knowledge of using regular expressions in JavaScript, and then we did two exercises to illustrate these points of
First read a piece of code The code is as follows:Copy code The address of this ajax request cannot be accessed normally.In this code, the value of jQuery ("# my_input"). val () is assigned to the value, and you want to introduce the value
JavaScript is not considered by many people as an object-oriented language for many reasons. For example, JavaScript does not have classes and cannot provide traditional class inheritance. For example, JavaScript cannot implement information hiding,
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.