JS determines whether it is a number, whether it is an integer, or whether it is a floating-point code

function Checkrate (input) {var re =/^[0-9]+.? [0-9]*$/; Determines whether the string is a number//judgment positive integer/^[1-9]+[0-9]*]*$/if (!re.test (Input.rate.value)) {alert ("Please enter a number (for example: 0.02)"); Input.rate.focus (); Retur ...

JavaScript pops up windows when you close IE window

Here's a JavaScript tutorial for you to close the IE window when the pop-up window is a 24-hour pop-up, of course, you can also customize the pop-up window time Oh. <script language= "JavaScript" > <!--function Setcookie (name,value)//two parameters, one is the name of the cookie, one is the value {var exp = ne ...

JS Regular expression inserts data code at the specified location

JS Regular expression inserts data code at the specified location <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" Http://ww ...

JS prohibits copying web page code

JS prohibits copying web page code <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" Http://www.jzread ...

JS forced line wrap support Firefox [Firefox] browser

<!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/ Xhtml1-transitional.dtd "> <html xmlns=" http://www.jzread.com/1999/...

JavaScript Select and deselect all code

<script type= "Text/javascript Tutorial" > Function checkall (name) {var names=document.getelementsbyname (name);   var len=names.length; if (len>0) {...

JavaScript phone number Fax number legality verification code

Telephone Telephone authentication Code if (document.regform.u_telphone1.value.length==0) | |! Checkifnumber (Document.regform.u_telphone1.value)) {&nbs ...

JavaScript Chinese and authentication authentication program

JavaScript tutorials Chinese with authentication name legality Validator <!doctype HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/tr/ Xhtml1/dtd/xhtml1-transitional.dtd "> <html xmlns=" HT ...

JavaScript user Registration Password Strength verifier

JavaScript Tutorial User Registration Password Strength Validator <!doctype HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/tr/ Xhtml1/dtd/xhtml1-transitional.dtd "> <html xmlns=" htt ...

JavaScript Filters HTML Tag code

JavaScript Tutorial Filters HTML tag code <head> <meta http-equiv= "Content-type" content= html; charset=gb2312 "/> <title>javascript tutorial Filters HTML tag code </title> <SCRIPT&NBS ...

JS gets the value of the Drop-down menu to pass to the text box

JS gets the value of the Drop-down menu to the text box <script language= "JavaScript" > <!--function Showtotext () {Document.form_name.textfield_ Name1.value=document.form_name.select_name.value DOCUMENT.FORM_NAME.TEXTF ...

Using onmouseover and onmouseout mouse variables to invoke div background style JS code

JS using onmouseover and onmouseout mouse variable div background style code <html xmlns= "http://www.jzread.com/1999/xhtml" > <head> < Meta http-equiv= "Content-type" content= "HTML; Charset=g ...

JavaScript HTML illegal character filtering and conversion function

JavaScript Tutorial HTML illegal character filtering and conversion functions <html xmlns= "http://www.jzread.com/1999/xhtml" > <head> <meta http-equiv= "Content-type" content= "HTML; charset=gb2312 "...

JavaScript determines whether the specified string is a valid number

<cfoutput> <script type= "Text/javascript Tutorial" > <!--function baseisnotnum (thenum) {//Judge whether it is a number if (Basetrim (thenum) = = "") return true; for (Var i=0;i<thenum ....)

JS get content in the picture address regular expression

JS get content in the picture address regular expression <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" http://www ...

Commonly used JavaScript limit input character number code

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.jzread.com/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "> <html xmlns=" Http://www.jzread.com/19 ...

JavaScript gets the contents of the specified element of an HTML file

<html> <head> <title> Get the specified elements of the HTML file </title> <script language= "JavaScript" > function GetElement1 () {Alert (document.all ("myH2"). TagName);

JS +css Disable Web page Copy selection feature support Ie/firefox

This is a JS CSS tutorial to prevent Web page copy selection function, support Ie.firefox code Oh, we use for IE <body onselectstart= "return false" > this code to instance For Firefox with CSS to define Oh, *{-moz-user-select:none} Well, crap don't say much, go to try it, can be compatible Ie/firefox OH.

JavaScript ad Delay Loading content method

JavaScript Tutorial ads Delay loading, waiting to load content methods <head> <meta http-equiv= "Content-type" content= "html"; charset=gb2312 "/> <title> Untitled document </title> </head> <body> ....

JS page Pop-up small window, the page background gradually become translucent

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" http://www.w3.org/1999/xhtml ...

Total Pages: 21 1 .... 12 13 14 15 16 .... 21 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.