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 ...
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 <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" Http://ww ...
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 ...
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 ...
<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 <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" http://www ...
<html> <head> <title> Get the specified elements of the HTML file </title> <script language= "JavaScript" > function GetElement1 () {Alert (document.all ("myH2"). TagName);
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.
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.