There is a relationship between the two windows of the Static Page value transfer (trilogy). The parent window parent.htmopens the window son.htm.
The child window can point to the parent window through window. opener. In this way, the object of the
Prototype1.5 has never had time to read prototype for the first time. Now, it has been updated to 1.5 pre1. Haha, the powerful features have to be learned. This is another shortcut to improve your JS capabilities.
1. What is Prototype?Maybe you
Prototype. js Ajax object I want prototype. the ajax objects in js certainly attract a lot of people, and a large number of encapsulated ajax logic classes are of great help to our beginners who use ajax.
Here is an example of my use:
1. Ajax.
ShowModelessDialog () has many built-in methods to generate a dialog box, such as window. alert (), window. confirm (), window. prompt. However, IE provides more methods to support the dialog box. For example:
ShowModalDialog () (IE 4 +
JavaScript, a private member of JavaScript, is the most misunderstood programming language in the world. Some people think that it does not have the ability to "hide information", because JavaScript objects do not have private variables and methods.
The previously unknown function window. attachEvent ('onload', LoadDiv) is found );
Function LoadDiv (){
If (document. getElementById ("Bunny2 "))
{
Document. getElementById ("Bunny2"). innerHTML ='
Javascript Event Description onblur :( used in form elements, executed when the element loses focus)
Onchange :( used in form elements, when something changes, it is executed)
Onclick: (execute when you click an element)
Ondblclick: (double-click
Common js functions are good. 1. Regular Functions
Common javascript Functions include the following nine functions:
(1) alert function: displays a warning dialog box, including an OK button.
(2) confirm function: displays a confirmation dialog box,
Multiple iframe auto-resize problem one page I have multiple iframe, and each iframe has different src, the height is also different.
How can I use a function to automatically adjust the height of all iframe on this page?
Function change_size
JavaScript static dynamic during this time, because a website is to be created, and the space does not support ASP, I picked up the JavaScript tutorial and checked to see if I can achieve dynamic in the static space. Of course, this dynamic is not
Multi-attachment Upload Component demonstration 1. You can dynamically add or delete objects to an uploaded file
2. automatically process the file path to get the file name.
3. automatically calculate the number of files to be uploaded
script
Prototype Description: The following describes prototype in the js class:
=====
Constructor attributes
Applied to: Array Object | Boolean Object | Date Object | Function Object | Number Object | String Object
Requirements
Version 2
Returns
A very simple way to achieve the effect of adding the TD.
The Code is as follows:
Function Menu_Init (obj ){Var tds = obj. getElementsByTagName ("td ");For (var I = 0; I {If (tds [I]. className = "MenuOptions "){Tds [I]. onmouseover =
ShowModelessDialog () has many built-in methods to generate a dialog box, such as window. alert (), window. confirm (), window. prompt. However, IE provides more methods to support the dialog box. For example:
ShowModalDialog () (IE 4 +
Free Space advertisement omnipotent elimination Code Free Space advertisement elimination code (omnipotent | applicable to all spaces) (only IE5.5 +)
General principle: Most of free space ads
Or(Including flash and ActiveX controls ). The
Code that can only be accessed by clicking an advertisement
SCRIPT click here after all ads [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
In IE, the jb51 correction version is recommended for displaying images on the current webpage.
You can directly enter the method in the IE Address Bar of the opened webpage.
1. Display All images on the webpage
The Code is as follows:
Javascript:
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