Window. opener returns the reference of the window in which the current window is created.
Window. opener usage
In a textbox with the id "name" on window. opener worker, you can write it:
Optional values opener.doc ument. getElementById ("name").
There are two common methods for downloading JavaScript files: compression and minification ). When using IIS 7.0 on Windows Server to host your website, you can configure IIS to automatically use the GZIP compression algorithm to compress your
Some knowledge points of JavaScript String concatenation are worth looking at to improve efficiency. Var str = "hello ";
Str + = "world ";
In fact, the steps behind the scenes are as follows:
(1) create a string that stores "hello.
(2) create a
When using the Date object in JavaScript, a common operation is output. However, the format output by the toString () method provided by the Date object cannot meet the diversified needs of users. I was wondering if I could introduce the form of the
Eval () function, which can execute a string as a JavaScript expression. [Eval () function]
JavaScript has many tips to make programming easier.
One of them is the eval () function, which can execute a string as a JavaScript expression.
For example:
When I used JavaScript on the page today, I found that it could not pass W3C verification. After checking it for a while, I found that this method can shield most JS verification failures. The simple and practical method is as follows:
Add type
Because I used to be. net programmers, so even if you are working on the front-end, you are also used to writing js scripts in an object-oriented way. I think if you were or are still a third-generation programmer, you should be familiar with this.
Some symbols cannot be directly transmitted in the URL. If you want to pass these special symbols in the URL, you need to use their encoding. The following table lists some special URL symbols and codes.
Hexadecimal value1. In the + URL, the plus
Recently, when I was working on a project, I needed to use a large number of Box blocks with rounded corners of the page. Previously, I used image as the background and other methods. That method is quite feasible for a few, however, this effect is
The Browser executes window. the onload function is not only after the DOM tree is built, but also after all the images and other external resources are fully loaded and displayed in the browser window. therefore, if an image or other resources is
Save part of the html page to a new html file and use jquery to get the content of the specified id. Then save the code.
The Code is as follows:
// Save the chat record to your local deviceFunction save_record (){// Get the current date as the
It is not that easy to start a proper title for this article, so I will explain the two purposes in this article. 1) introduce the eval function usage in javascript.
(2) how to execute global code in the function
►First, let's talk about eval usage.
One highlight of extjs is its rich UI, which allows programmers without art cells to make beautiful interfaces. Bringing all the UIS together has both advantages and disadvantages. The advantage is that they have a unified style and interface. The
The load () method is usually used to obtain static data files from the Web server. However, this does not reflect the full value of Ajax. In the project, if you need to pass some parameters to the page on the server, you can use $. get () or $. the
Some download websites try to control the word display of the software introduction for the sake of overall unification, or the implementation of a small function due to reasons such as too many word descriptions leading to the relatively low
If you do not have a deep understanding of javascript, it is easy to write incompatible code (like me). At this time, you have to judge the browser. For example, event listening, mouse and keyboard events, and Range events are different. The
JSON is called JavaScriptObjectNatation. It is a lightweight data exchange format and is very suitable for server-to-JavaScript interaction. This article will quickly explain the JSON format and demonstrate how to process JSON format data on the
Several Considerations for optimizing the performance of JavaScript scripts with the development of the network, the speed of the network and the increase of machine speed, more and more websites use a variety of client technologies. Ajax is
The second part of the js verification form: JavaScript script, which verifies the data item begin in the form
-------------------------------------------------------------------------------
*/
Function checkForm (objFrm ){
Var len = 0;
Len = objFrm.
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