[1] describes firefox. safari has a bug that is inconsistent with DOM 3 specifications: When event.currenttargetis equal to event.tar get (that is, when event flow is in target phase ), call the listener with useCapture true added to currentTarget.
The following is a code snippet:1. oncontextmenu = "window. event. returnValue = false" will completely block the right mouse button no 2. cancel selection to prevent Replication3. onpaste = "return false" Do not paste4. oncopy = "return false;"
0DownloadFilesa2004-11-07) { var at = srcDownloadFilesa2004-11-07DownloadFilesa2004-11-07.outerHTML.indexOf("dynamicoutline"DownloadFilesa2004-11-07) if(at > 0DownloadFilesa2004-11-07) { var gt =
I needFor I = 1 to nResponse. Write ""NextHowever, I don't know the name of the validation in javascript, so I thought of using ASP to automatically generate JavaScript code to test textThrough the call of the process, you can use the form of cyclic
How to make the front-end page andMaintaining interaction between CGI pages in the background is always a problem. Here we will introduce two.Method 1: use cookies for interaction. There are three files in total:Index.htm,action.php, main.htmIt
Fade-in and fade-out results are often used in daily projects. Unfortunately, native JS does not have a similar method, and sometimes a small page is not worth introducing a jQuery library, so I wrote it myself, encapsulated, useful friends can be
Gradual enhancement and steady degradation of javascript
In the upper left corner of google.com.hk, there is a more link with a target address. However, when we click, in most cases, a drop-down list is displayed for users to choose from (this is a
SetTimeout (expression, delay time); Unit: ms (ms); 1 s = 1000 ms;
SetInterval (expression, interaction time); Unit: ms (ms); 1 s = 1000 ms;
Window. setTimeout ()
During execution, it executes an expression or function from the specified time delay
Due to the differences in css and js support from various browsers, we often need to check the browser type and version before writing code for their differences in front-end development!The following checkBrowser () function mainly detects three
In web pages, the layout of tables is often visible. When the number of rows in a table is very large, it can easily lead to visual fatigue, and it is easy for users to read the data of the adjacent two rows. We can improve the user experience by
As Javascript is becoming more and more in web apps, many JavaScript codes are not used when pages are loaded for the first time. In this case, to improve the download speed and page rendering efficiency, We need to delay loading of these unused JS
The JS Loading completed in the previous article is on demand. This article adds a new method css to load the CSS file. The interface is the same as that in JS, for example:
View sourceprint? 1 LazyLoad.css([a.css, B .css, c.css], function (){
2
We have not introduced the new Ext. Brew package, one of ExtJS 4's many features. This is a unique Javascript framework. Ext. Brew is a perfect cup of tea made using the unique Sencha technology.
With the power of new data packets, you can build a
Grid is a good way to display a large amount of table data on a Web browser. Basically, the GridPanel of ExtJS 4 is an enhanced HTML table, which can easily obtain, sort, and filter data without limit. In version 4, we reconstructed the Grid to
Introduction:JS has not written much before the unit test, and has less applications in the project. Different programmers have different opinions on unit test. I personally feel that the project team is too large, unit tests are necessary when
Js CodeVar a = new Function ("document. write ()");Var B = function () {document. write (B );}Function c (){Document. write (c );}A ();B ();C ();The execution result is abc. The latter two definitions are commonly used. Variable B is a reference to
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