Iframe is usually used for pages of larger WEB projects, so it is important to access the content of each iframe. For example, if the login page is placed in an iframe, the logon Status display page is placed in another iframe on the same page. In
Source code download/Files/xiachuf eng/passwordTest.rar
Password strength detection code using JavaScript
The html code is as follows:
password
Enter the password:OnBlur = pwStrength (this. value)> password strength:Height = "23" style =
Operator
Usage
Description
Bitwise AND
A & B
If both operands have 1 bits, 1 is returned.
By bit or
A | B
If the corresponding bits of both operands are 0, 0 is returned for this bit.
Bitwise OR
A ^ B
1> dialog box between the base of window. prompt (text, value) comment and the modulo window (return your input)
Var v = window. prompt ("prompt", "enter your name ")
2> window. confirm (text, mess) modulo confirmation box ("yes/no" is returned
Regardless of whether java, c #, or vb is used to construct a pair. classobj = new classobj () can be used () the method constructs a class, and then uses the attention and method. In fact, javascript can also be implemented.
Example: Create a js
1> get the control using document. getElementById, without document. all (not supported by browsers such as FF)
2> is interpreted by firefox as submitting a form or refreshing the page. The standard
3> Use childNode () to replace the previous
This program is placed between and .
Click= "Windowopen ()" value = "full screen display" name = "button">
program description:
Function windowopen ()
Define a function.
{Var Destination = "http://zhoucaiqi.51.net"
Set a
1 // get the date string, return the YYYY-MM-DD
2 function getDate (date)
3 {
4 var thisYear = date. getYear ();
5 var thisMonth = date. getMonth () + 1;
6 // If the month length is one digit, add 0
7 if (thisMonth 8
9 var thisDay = date. getDate ()
Like other Ajax libraries such as JQuery, DevExpress's DXPerience also supports smart prompts of JavaScript scripts. Support for smart prompts to add aspxscriptintelliisense. js, aspxscriptintelliisense. js in the installation directory of
By Tony Ross (Program Manager)Original article: Same Markup: Writing Cross-Browser CodeTranslation: Once (csser.com)
Basic Principles
Recommendation
Function Test: Before using a function, check whether the browser supports it.
Behavior
1. Only numbers are allowed.
2. Only English letters, numbers, and underscores (_) are allowed)
3. Only English letters, numbers, and = @ # are allowed @#
4. Only Chinese characters are allowed1. Only numbers are allowed.
2. Only English letters,
A simple html page cannot transmit values across pages. It must be handled by js. In the following example, enter 001 search on page a and B display the search result:
A.html code
123456
B .html code
123456789101
This morning I found a problem when the address at the end of a Web page is a # (for example: http://www.baidu.com/go.asp ),
Run window. location. replace (window. location. href). The browser does not refresh the page.
Tested: window. location.
String native typeString. prototype-- Length: obtains the length of a string.-- CharAt (pos): gets the character (string) of the current position)-- IndexOf (str, position): returns a string.-- LastIndexOf (str, position): returns the string-- Match
Click the hyperlink to call the javascript function. Generally, However, this disadvantage is that after you click the link, the GIF animation on the page will remain static.
Compile the following code: link for static GIF animation
Solution:
Reference
Javas of shocking2001Exotic arguments
Original Title: arguments: A JavaSCript Oddity
Author: Andrew Tetlaw
Original connection: http://www.sitepoint.com/blogs/2008/11/11/arguments-a-javasMiddleware-oddity/
In JavasThe
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