CodeWeblog.com » lt,quot,script language » js a small example of calibration register

js a small example of calibration register

<html>
<head>

<script language="Javascript">

function checkUserName (ssn) (

if (ssn.length <3 | | ssn.length> 18) (
/ / alert ( "\ Please enter the correct user name, user name, a length of 3-18 bit!")
document.getElementById ( "usernameErr"). innerHTML = "<font color='red'> Please enter the correct user name, user name, a length of 3-18 bit! </ font>";
document.getElementById ( "usernameErr"). focus ()
return false;
)

document.getElementById ( "usernameErr"). innerHTML = "";

return true;
)
</ script>
</ head>
<body>
<form method="post">
<input type="text" name="username"> <span> </ span>
<input type="submit">

</ form>
</ body>
</ html>

================================================== =================

To do their own thing, that is, a simple effect, have done before, then forget that they are also a few days, the help of classmates at the finish
Digg Technorati StumbleUpon Mixx del.icio.us Reddit BlinkList Furl YahooMyWeb feedburner

Tags: lt (RSS), quot (RSS), script language (RSS), span (RSS), innerhtml (RSS), input type (RSS), classmates (RSS), few days (RSS), ssn (RSS), calibration (RSS)

Permalink: http://www.codeweblog.com/js-a-small-example-of-calibration-register/

Leave a reply