JavaScript is a list of commonly used functions to facilitate their own inquiries.
The click () object. Click () to cause the object to be clicked.Closed object. Closed Object window is closed True/falseCleartimeout (object) clears the SetTimeout
JS Refresh page Code Daquan, the need for a friend to collect this article to facilitate their own inquiries.
JS
function is too powerful, is not a good point of the coding tool, heard. Net2008 already have grammar hints, but I have no use, a
JS code in the difference between IE and Firefox, 16, very practical.
1. The ID of an HTML object as an object name problemThe ID of the Ie:html object can be used directly as the subordinate object variable name of the documentFF: Not
A variety of pop-up windows command details, very detailed, will be helpful to you.
1, window.open (pageurl,name,parameters)
Pageurl is the pop-up window path;
Name for pop-up window, can also be the system itself, such as: _self,
To share with you often use the JS verification script, very practical, like to collect it.
1//================================================================2//This function is used to limit the number "0" to "9" in the text input box, ".", "-"3//=
I hope this will help you understand the different ways in which functions are invoked, and keep your JavaScript code away from bugs. Knowing the value of this is your first step to avoiding bugs.
JavaScript function call rule one
(1) Global
The package contains the JS syntax for IE and Firefox two browsers, please see article in detail ...
To get the size of a window or browser windowsSometimes you need to find out the size of the browser's effective window space, which generally
JavaScript function call Rule one
(1) Global function call:function Makearray (arg1, arg2) {return [This, arg1, arg2];}This is one of the most common ways to define functions. People who believe in learning JavaScript are not unfamiliar with its
IE6, Firefox2 passed,
Suppose the main page has a Div, which places an IFRAME
3 menu links, loading 1.html, 2.html, 3.html three pages in IFrame respectively.
3 sub pages loaded on their own page window.onload execution
function aa () {
var
New Configuration entry:
New
fixpositionParameter setting whether the pop-up box always floats in a fixed position on the screen when the page scrolls.
New
DragoutParameter setting allows pop-up boxes to be dragged outside the page
Object
Document ObjectAn object that contains information about the current document.
Property
Title of the current document, if not defined, contains "untitled".
Location the full URL of the document.
LastModified contains the date the
Object
Frame ObjectIt is the child window of the entire browser window, and it has all the properties of the Window object, except the Status,defaultstatus,name property.
Location objects
Contains information about the current URL.
datagrid| Client
Minimalist format: This is a Shang method, but not universal. This is more convenient if the page has only one DataGrid and only a checkbox in the DataGrid. The main idea is to search the entire page of the checkbox, all of them
Js
JavaScript Event List NarrationEvent browser to support the interpretation of general events onclickIE3, N2 mouse Click triggered this event ondblclickIE4, N4 mouse Double-click triggered this event onmousedownIE4, N4 when the mouse is pressed to
js| control does not allow the target attribute to be used in tags in the HTML 4.0 strict and XHTML 1.0 strict, which is a frustrating thing for web designers. It is still allowed in the specification of the transition. But by some means, We can
Reference | objects | Number of frames within the length window of an array
The full (absolute) URL of the document displayed in the Location window (the property itself is also an object) do not confuse it with a document.location, which is the URL
Reference | objects | Array onselect selection Events
b.30 TextArea Object
It is a property of the Form object, a text area () in the universe.
Property
Default value of DefaultValue textarea object (value= attribute)Name of the object (Name=
Reference | object | The reset button in the array reset form (1NPUT type= "reset" >) (the property itself is also an object)
Select box () in the Select form (the property itself is also an object)
Submit button in submit form () (the property
Reference | objects | Array Links array document an array of link objects in the order in which they appear in the document (the property itself is an object)
Location The URL of the currently displayed document. The user cannot change the
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