1: window. OpenOptional values open('page.html ', 'newwindow', 'height = 100, width = 400, Top = 0, Left = 0, toolbar = No, menubar = No, scrollbars = No, resizable = No, location = No, status = no ')// Write a row-->Parameter description:Window.
The main purpose is to use JavaScript: window. open () for browsers such as ie6.0, 7.0, 8.0, chorme, Safari, and Firefox.To maximize usage at the beginning open For ie6.0, the effect is full screen, but there is no such button, you must open the
(Detour, please)
Introduction
0.9.3 corrected someCodeTo eliminate global variable queries.Question
Implementation is similar to the effect of entering text numbers on the Photoshop control panel, so the name is pswheel. It is used to control
It's time to hide your laziness.Today, a colleague asked me a strange question: A piece of javascript can be executed normally after it is put out of the function, but it is always wrong when it is triggered by a button in a function!I looked at
//
Use this expression to obtain the string length.
Function
Regdatalength (fdata)
{ VaR Vallength = Fdata. length; VaR Reg = New Regexp ( " ^ [\ U0391-\ uffe5] $ " ); VaR Result = 0 ; For (I = 0 ; I
Below is the write method of this frame:
frames
First, you must inform the browser of the number of frames you want to open? This is advertised by the tag.RowsThis parameter indicates how many columns do you want to split the View
------------ Are you sure you are correct?
A reverse selection and a forwardFunction checkedcount (){VaR Mm = Document. getelementsbytagname ("input"). length;For (VAR I = 0; I {VaR dd = Document. getelementsbytagname ("input"). item (I );If (DD.
Script Type="Text/JavaScript">
VaRStr= ' ,-';
// Use Hash Storage for regular expression replacement String. Prototype. multireplace = Function (Hash ){ VaR Str = This , Key; For (Key In Hash ){ If (Object. Prototype.
JavascriptThere are many tips to make programming easier. One of them isEval ()FunctionThis function can treat a string asJavascriptExecute the same expression.
For example:
VaR _Unevaled_ Answer = "2 + 3 ";
VaR _Evaled_ Answer =Eval("2 + 3 ");
String. Length
Purpose: this is actually an attribute of the string class. However, JavaScript regards full and half-width as a character, which may cause some problems in some practical applications, now we use prototype to make up for this
1. Object impersonating
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Function classa (scolor ){
This. Color = scolor;
This. saycolor = function (){
Alert (this. Color );
}
}
Function classb
Table object setTable object: The table in the HTML document. For each mark in the document, the browser creates a table object.
Set
Description
Cells []
Returns an array containing all cells in the table.
Rows []
The calendar on this site only appears on pages that show blog-related information. that calendar is enhanced with JavaScript allowing you to change the month displayed by the calendar without reloading the rest of the page. so, in order to ensure
Note: When you scroll up or down, the content height in cell demo1 must be greater than the height set in demo to scroll infinitely.When you scroll left or right, the content width in the cell demo1 must be greater than the width set in the demo to
The following script is required for the project:
Purpose: To achieve this purpose: After the user enters a digital amount in the approved amount, the script automatically calculates the amount based on the algorithm in the audit reduction rate on
Javascript is object-oriented, and objects are divided into two types,One is a common object and the other is a method object.. Common objects include "Numbers", "dates", and "user-defined objects" (for example {}).
Let's take a look at
In general, if the script is very long, we put them into a JS file, then generate a script element, add it to the DOM tree, and set SRC to the address of the JS file. But for very short scripts, what if we don't want to use new functions and eval?
Javascript is a Web scripting language that is used in combination with the HTML language. Before learning JavaScript, you must have a certain HTML base.
So how to put Javascript into an HTML page?
There are three methods for adding HTML pages to
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