The Window object is the top-level object in the JavaScript browser object model, and contains several common methods and properties:
1 Open a new window
Copy Code code as follows:
window.open (Pageurl,name,parameters)
which
If the typeof operator is numeric, string, or Boolean, it returns the result of "number", "string" or "Boolean", to object, array, or NULL, which returns
Is "Object", which returns "function" for the number of functions, and returns "undefined" if
What is a cookie?A cookie is a variable that is stored in a visitor's computer. This cookie is sent whenever the same computer requests a page through the browser. You can use JavaScript to create and retrieve a cookie's value.
Cookie usage
OnChange has a noticeable disadvantage when it comes to text box input boxes. The event does not fire with the input of the text, but only when the text box loses focus (onblur). That is, no instant sex!
Under IE, you can use onpropertychange to
Test
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
JavaScript Pop-up Window Center code
Here are two examples of a pop-up screen centered window
Copy Code code as follows:
"many times in the name of donation to our country to transfer unqualified medical equipment, and even medical waste. "Aqsiq" a paper "kill order" makes Agape, LDS and other U.S. foundations appear in the Chinese public view.
工欲善其事, its prerequisite. To achieve a certain effect, we must first understand the principle.Magnifier's function is to get the mouse in the small image position, and then based on the size of the scale map to the size of the larger picture needs to
Wake up in the morning suddenly want to write a drawing function, previously seen on the internet someone did, but are made with VML, only IE support.
This is the absolute location of the to draw the point, compatible with a variety of browsers.
TableSort.class.js
Copy Code code as follows:
/*
* The table name cannot be empty and can be an object or name that has been acquired
* Table header names defaults to: Tag
* A different trigger ordering method can be implemented by
We recommend that you collect JavaScript validation function, you will be able to use the next encounter directly
/*
==================================================================
Is null, only the string is judged
Null or 0 long empty, after
I. Grammar
1.1 Get all cookies for the current page:
var allcookies = Document.cookie;
Allcookies is a string that contains a semicolon-delimited list of cookie strings (that is, key=value key-value pairs).
1.2 Write a new cookie:
Recently, the problem of cleaning up the browser compatibility, the real head, with the help of predecessors, or a little progress, the following post some code, I think will be more useful
Copy Code code as follows:
var isie =????;
(please revise yourself) & Lt;iframe src=*.htm> Please wait while you are selecting the fastest site ... 5 Seconds no response please Select the entry below to enter: → Netcom (for North users) → Telecom (for Nanfang users)
Write too tired, write for 3 hours! We can play.
The interface is not beautiful, although the batch
&L
T;/body>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Let's take a look at the effect diagram to be implemented first
The code is as follows
Document
In some cases, the resource fails to load, but the page needs to be displayed. Here I skipped the situation of failure, if
Click the effect of the whole page to turn gray (you can do the exit effect).
Note: The page header must be added
Otherwise the effect cannot be achieved
Safe exit
function Test () {
return 123;
}
Apparently, it's a function statement, what's down there?
var b=function () {return 123};
This everyone doubts, as if not a declaration, because the function does not have a name, but an anonymous function,
This article to share a paragraph of JS code to automatically switch the image of the instance code, the code is as follows:
New Document
The above is a small series of JavaScript to introduce the implementation of
In the previous article, I talked about the simple JavaScript animation effect, and this article mainly introduces some of the problems and solutions I found before I changed the code.
In the previous example of multiple-object width changes, we
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.