Currently, many webmasters prefer to use iframe to directly call others' websites. On the surface, it is impossible to see that the website calls others, and all the open views access our servers, however, the viewer thinks this is the other party's
In the past, we used SWFupload to upload files directly, and then the parameters were processed separately. Next I will introduce other parameters for passing the form using SWFupload.
On the upload page, the value is always not obtained. Later, a
This article summarizes the usage of addEventListener () and removeEventListener (). For more information, see.
AddEventListener () and removeEventListener () are used to process specified and deleted event handlers. All DOM nodes contain these two
We know that in IE browsers, we can monitor the loading status of elements through onreadystatechange, and then determine whether the elements are loaded through the readyState attribute. In standard browsers such as Chrome and FireFox, we can
This article introduces some common Javascript Form Verification code, including email address, phone number, mobile phone number, ID card, website address, and so on.
The Code is as follows:
Copy code
// Verify EmailFunction
This article will introduce some performance optimization methods when using js event seeding loops. Below I will introduce some basic JS knowledge, it was found that the JS loop is significantly different from the loop in other languages, and then
The eval () function in javascript is basically the same as the eval function in php. It is an encryption function that allows code to run using the eval function, I 'd like to explain how to use js eval (function (p, a, c, k, e, d ).
Let's take a
There are many sorting methods for Javascript arrays. js itself provides a large number of data sorting functions. In addition to using it to sort data, other custom sorting methods are also introduced.
Sort by single array
Sort () function
The sort
This article introduces a good js control page to open the program code in a specific iframe. If you need to know it, please do not go to the reference page.
When writing the system management backend, we often use iframe for management, but there
In javascript, we need to obtain the coordinates of the mouse position in several ways. One is the relative position (browser window, document location). Almost all of these are using document. body. scrollTop, document. body. dom commands such as
This article describes how to use the key type in javascript for in. for more information, see.
Many while, for (var k = 0; k
The Code is as follows:
Copy code
Function getAvgSum (arr, param, flag ){Var as = 0;If (param
This article describes how to use the onload and complete operations of an image.
Previously, we had to scale the merchant pictures on the merchant page according to the size of the box outside the image. The previous idea was to first output the
This article will collect some of the control form operation functions commonly used in front-end WEB development for your reference.
. Automatically select text when the mouse passes
Code:
Mouse Selection:
2. Set the radio button
Code:
js
In js, we can use regular expressions to check whether the variable is a number. In addition to regular expressions, we can also use the isNaN function to check for non-numeric values. In this way, we can also obtain numbers, the following is an
This article introduces two good implementation programs for returning to the top by using jq and javascript. For more information, see.
The jquery blog is now out of work on time. Recently, I am very tired. It is estimated that I have worked
The most common method to review historical data is to directly use cookies. Of course, session or data is stored directly in the database, in this way, you can view your browsing history at any address. Next I will introduce the method in
This article introduces a js user who presses the keyboard to display the keyCode instance. For more information, see.
Js instance
The Code is as follows:
Copy code
press the keyboard to display the keyCode the keyCode you
Sometimes we do not want the user to submit data repeatedly, so we want the user to submit the form after the button is temporarily unavailable, and the data cannot be submitted again. Next we will introduce two instances.
Instance 1
The
Window. open is a js command to open a new window. It is often used to open a window. However, many browsers have used Windows. open is blocked. Next I will introduce the solution to window. the method of blocking open.
First look at a common window.
The first time I used artDialog, I didn't know some basic attributes of artDialog. I called the iframe and then called the art. dialog. close.
Pop-up window method (refresh the current form when closing the pop-up window ):
The Code is as
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