I don't know if you've been busy lately, but I'm too busy anyway.
To organize the activities of the class, but also to toss my new machine. (I bought a new computer, did not buy a sound card, more exasperating is not able to access the
Tip: You can modify some of the code before running
imitation watercress Paging prototype (JavaScript edition)
Tip: You can modify some of the code before running
Use cookie : A cookie is a browser that stores a small number of named data. It is associated with a particular Web page or Web site. The Cookie is used to provide memory to the browser so that script and server programs can use the input data
Simple point to text display content instance
The code is as follows
Copy Code
oec2003 Centered Div
Show pictures when connected
The code is as follows
Copy Code
JS Refresh Frame Script statement
The code is as follows
Copy Code
How to refresh the page that contains the frame withchild window refreshes parent window(or Refresh )How to refresh another frame's page with
My most common code, the core code is
The code is as follows
Copy Code
Script language= "JavaScript" >Function Jump (){Location.href=document.myform.menu1.value;}
HTML code
The code is as follows
First, Window.name
1, Server return
The code is as follows
Copy Code
2, define an IFRAME, add onload event
The code is as follows
Copy Code
3. Define a form, set
General EventsEvent Browser Support Description
OnClick ie3| n2| O3 Mouse click events, multiple mouse clicks within a controlled range of an objectOnDblClick ie4| n4| O Mouse Double-click eventOnMouseDown ie4| n4| O the button on the mouse is
Method uses jquery with the following code.
The code is as follows
Copy Code
jquery (". Captcha_iframe"). attr ("src", jquery (". Captcha_iframe"). attr ("src"));
Of course, you need to add class=
Code one copy of the topic address, passed to the friend on Qq/msn
code is as follows
copy code
Code to copy the contents of a text box:
The code is as follows
Copy Code
Some writing about parent-child page data interaction in JS
1.window.frames["Test"].document.getelementbyid (' menu ');2.//because all functions are stored inside the window object, you can remove the opening
Let's take a look at one of my interview questions.
Last week in the interview, the Examiner asked me how JS to determine the data type of a variable is an array, JS typeof can not distinguish between array and Object, this is a problem of JS.
JS Open window is generally the use of window.open method:
Win = window.open (Child_window_url, Child_window_name, child_window_attrs);
The parent window can then obtain a reference to the child window through win, and can then detect if win is
The function in JavaScript can be used to create a method, or it can be used to create a class, and we can actually think of a class that simulates it with a function (when it comes to classes, the knowledge of closures is generally understood). Let'
Use ie instead of internet explorer, and use mf/ff instead of mozzila firefox */ // Window. eventIe: window. event objectFf: there is no window. event object. You can pass the event object to the function parameters. For example, onmousemove =
Example The code is as follows:Copy code Document Supplement:The onFocus event is an event that occurs when the cursor falls in the text box.An onBlur event is an event that occurs when the cursor loses focus.Js objects supporting this
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