Javascript hotkeys compatible with IE and Firefox

  When a function is called by a non-IE browser, the parameter event is automatically returned, through which the keyboard can be obtained.

How to Use closures in Javascript

Javascript variable scopes are maintained through functions. For example, for a function: function add (a, B) {return a + B;}, different parameters are used (the same is true for a function without parameters) when calling it: var sum1 = add (1, 2);

Full Control of JavaScript Keyboard Events

keyboard event handler lab onkeydown onkeypress onkeyup key codes 0 0 0 char codes (ie5/MAC; nn6) 0 0 0 modifier keys shift shift shift CTRL CTRL CTRL alt

Javascript binding event

The simple binding time seems to be effective only when loading for the first time.Document. getelementbyid ('yourhtmlelement'). onclick = Haha;Function Haha (){Alert ("Cleopatra ");}If the parameter is passed, it is a soy sauce.Document.

Javascript exports Excel, Word using ActiveX

How to export a web page as an Excel document cell a cell merge Row A cell B cell merge Row B code function Preview () {window. clipboardData. setdata ("Tex T ", document. all ('areaprint '). outerhtml); try {var

Javascript verification date function

// Judge whether the date is valid function isdate (otextbox) {var RegEx = new Regexp ("^ (? :(? :( [0-9] {4} (-| \/)(? :(? : 0? [1, 3-9] | 1 [0-2]) (-| \/)(? : 29 | 30) | ((? : 0? [13578] | 1 [02]) (-| \/) 31) | ([0-9] {4} (-| \/)(? : 0? [1-9] | 1 [

Jquery tool functions for JavaScript objects and Arrays

Original article: http://www.cnblogs.com/hyl8218/archive/2010/01/22/1653485.html   Jquery provides many useful tool functions. These functions are mainly divided into two types: functions that operate the set array and non-set array functions.

Two methods to hide and display page controls using JavaScript

Javascript controls the hidden display of page controls. The difference between the two methods is whether the controls are still occupied on the page after they are hidden.Method 1:Document. All ["panelsms"]. style. Visibility = "hidden ";Document.

[JavaScript] How to verify that the form is changed on the client

Each object in form retains the initial value. Therefore, when submitting a form, you can traverse the object in form,Check whether the current value of the object is consistent with the initial value to determine whether the form has been modified.

Javascript objects and Arrays

This article lists various JavaScript objects and arrays, including a brief description of each of the above objects or arrays, as well as the relevant attribute methods, and event processing.ProgramAlso, the parent Object User indicating the object

Javascript touch control Slider

Download v0.95 (3kb minified and gzipped ). actively supports these browsers: IE6 +, Firefox 3 +, Safari 5 (mobile safari 4), chrome 15, opera 10 +. need jquery 1.6 +. source code on GitHub. tweethow to usetouchslider depends on jquery. include both

Javascript learning 4-objects and Arrays

In JavaScript, objects and arrays are two basic data types, and they are also the two most important data types.An object is a set of named values, and an array is a special object, which is like a set of ordered values. 4.1 objects as associative

Execcommand Instruction Set in Javascript

/*  * This function executes the Copy command.  */ FunctionFn_doufucopy (){ Edit.Select(); Document.exe ccommand ('Copy'); } /*  * This function executes the paste command.  */ FunctionFn_doufupaste (){ TT.

Javascript: Prototype attribute usage instructions

Prototype is a method introduced in IE 4 and later versions for a certain type of objects, and it is particularly convenient: it is a method for adding methods to class objects! This may sound a little messy. Don't worry. Next I will explain this

Javascript trigger event list

1. Click Event ___ onclick Events generated when you click the mouse button. At the same time, the event processing specified by onclickProgramOrCodeWill be called for execution. For example, ('Xxxx.html ', 'newwindow', 'width = 456, Height

Javascript program optimization

Continuing with our JavaScript optimization plan, we have made every effort to reduce the size of Javascript script files for transmission in the last period. However, this is not enough because Javascript Code The speed is divided into two parts:

A very good JavaScript Control Div layer drag/drag code

A Good JavaScript Control Div layer drag/drop Code Drag and Drop status: not started this special effect is collected on the Internet and is only used for interest and learning communication, it is not used for commercial

Javascript image rotation at 360 °

imagerotation

Javascript seamless scrolling

JavaScript seamless scrolling by situ zhengmei seamless scrolling seems to be the biggest Internet advertisement carrier, it can be described as "Ubiquitous. However, compared with the early flash fonts, floating ad computing has improved. Due

Javascript URL encoding and decoding

When URL is used for parameter transfer, some parameters or URL addresses with Chinese names are often passed, and conversion errors may occur during backend processing. In some transfer pages, gb2312 is used, and utf8 is used on the receiving page.

Total Pages: 5378 1 .... 2598 2599 2600 2601 2602 .... 5378 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.