The Unix error

The Unix error

var a=document.check.username.value; if(a=="" ) { alert("Enter a valid UserName"); return false; } if(!isNaN(a) ) { alert("Enter a valid UserName"); return false; } var b=document.check.password.value; if(b=="") { { alert("Enter password"); return false; } }

View Answers

May 28, 2012 at 12:59 PM

The given code allow the user to enter username and password.It will show an error message if user leave the fields blank.

<script>
function validate(){
var a=document.form.username.value; 
if(a=="" ) {
alert("Enter a valid UserName");
return false; 
}
if(!isNaN(a) ) 
{
alert("Enter a valid UserName");
return false;
}
var b=document.form.password.value;
if(b=="") {
{

alert("Enter password"); 
return false; 
} 
}
}
</script>
<form name="form" method="post"  action="" onsubmit="return validate();">
  <table>
  <tr>
    <td>Username:</td>
    <td><input type="text" name="username"></td>
  </tr>
  <tr>
    <td>Password:</td>
    <td><input type="password" name="password"></td>
  </tr>
  <tr>
  <tr>
  <td></td>
  <td>
  <input type="submit" value="Submit" name="addproduct"/>
  </td>
  </tr>
</table> 
</form>









Related Tutorials/Questions & Answers:
The Unix error
The Unix error  var a=document.check.username.value; if(a=="" ) { alert("Enter a valid UserName"); return false... will show an error message if user leave the fields blank. <script> function
unix
unix  not able to download java into unix os
Advertisements
unix
unix  hai friends, I am new to to java with unix.can you any one tell me ho to work unix in windows xp.i search in net,it will show the aludra.usc.edu.how can i install this? thanks
ModuleNotFoundError: No module named 'unix'
is throwing following error: ModuleNotFoundError: No module named 'unix' How to remove the ModuleNotFoundError: No module named 'unix' error..., ModuleNotFoundError: No module named 'unix' error will be solved. Thanks
ModuleNotFoundError: No module named 'unix-at'
ModuleNotFoundError: No module named 'unix-at'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'unix..., ModuleNotFoundError: No module named 'unix-at' error will be solved
unix
unix
ModuleNotFoundError: No module named 'unix_daemon'
;unix_daemon' error? Thanks   Hi, In your python environment...ModuleNotFoundError: No module named 'unix_daemon'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'unix-elf'
library, ModuleNotFoundError: No module named 'unix-elf' error...ModuleNotFoundError: No module named 'unix-elf'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'unix-time'
python library, ModuleNotFoundError: No module named 'unix-time' error...ModuleNotFoundError: No module named 'unix-time'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'ghub-unix'
-unix' error? Thanks   Hi, In your python environment you... python library, ModuleNotFoundError: No module named 'ghub-unix' error...ModuleNotFoundError: No module named 'ghub-unix'  Hi, My Python
ModuleNotFoundError: No module named 'unix-ar'
ModuleNotFoundError: No module named 'unix-ar'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'unix..., ModuleNotFoundError: No module named 'unix-ar' error will be solved
ModuleNotFoundError: No module named 'unix_dates'
ModuleNotFoundError: No module named 'unix_dates'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'unix_dates' How to remove the ModuleNotFoundError: No module named 'unix
ModuleNotFoundError: No module named 'unix-pyshell-pybc2'
named 'unix-pyshell-pybc2' error? Thanks   Hi, In your..., ModuleNotFoundError: No module named 'unix-pyshell-pybc2' error will be solved...ModuleNotFoundError: No module named 'unix-pyshell-pybc2'  Hi, My
unix/ubuntu os
unix/ubuntu os  how to find jdk path in unix through terminal any command
unix programming - Development process
unix programming  write a c program that stimulates 'ls" command
ModuleNotFoundError: No module named 'ssh-forward-unix-socket'
: No module named 'ssh-forward-unix-socket' error? Thanks   ...ModuleNotFoundError: No module named 'ssh-forward-unix-socket'  Hi, My Python program is throwing following error: ModuleNotFoundError
ModuleNotFoundError: No module named 'ancypwn-backend-unix'
: No module named 'ancypwn-backend-unix' error? Thanks   Hi..., ModuleNotFoundError: No module named 'ancypwn-backend-unix' error...ModuleNotFoundError: No module named 'ancypwn-backend-unix'  Hi
unix program - UML
unix program  sorry there is no unix category i slected uml 1.write a c shell script on links? 2.write a c shell that stimulates the fork? 3.write a c shell that stimulates the umask? 4.write a c shell that stimulates
UNIX - Java Beginners
UNIX  Dear Sir, Kindly send some important points/notes in UNIX since I have taken the exam pertains to UNIX, so that it will be very helpful..., Unix: The UNIX operating system was developed at AT&T Bell Laboratories
JBoss Unix and Line Separator
JBoss Unix and Line Separator  Hi, I am trying to solve an critical problem. I have an application which write a batch file using the method println... separator from O.S. \n on unix, but I am trying to change to \r\n. I change
error
error  while iam compiling iam getting expected error
Connecting to Unix through Java - JavaMail
Connecting to Unix through Java  Could you please tell a sample code, where i connect to the unix server and run a script and write the results in a file and mail that file back to me
Error-
Error-   Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me
error
error  i have 404 error in my program plz tell me yhe solution about
error
error  i have 404 error in my program plz tell me yhe solution about
error
/ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest
Error
Error  I have created ajax with php for state and city. When I change state then city will not come in dropdown list and it give me error as 'Unknown Runtime Error'. This error come only in IE browser, but in other brower
error
error  java.lang.unsupportedclassversionerror:bad major version at offset 6 how to solve this????   Hi, Please check the version of framework used and also the JDK version.ADS_TO_REPLACE_1 This type error also comes
error
error
error
error  When I deploye the example I have this message cannot Deploy HelloWorld Deployment Error for module: HelloWorld: Error occurred during deployment: Exception while deploying the app [HelloWorld
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern = /^\d{3,5
error
"+it); } } this is my program i am getting an error saying cannot find symbol class stringADS
error
error  whats the error.............. import java.util.Scanner; public class g { public static void main(String[] args) { Scanner s=new Scanner(System.in); int d,x,y; System.out.println("Enter the first number
Where i can use UNIX Operating System?
Where i can use UNIX Operating System?  Where i can use UNIX Operating System
Unix Web Hosting
Unix Web Hosting Unix Web Hosting is the type hosting provided on the Unix Servers. Unix Web Hosting is very reliable hosting option. Unix Hosting.... UNIX web hosting and Linux web hosting are the most powerful and reliable hosting
Java code to run unix command - Java Beginners
Java code to run unix command  Hi, I need a java code to connect to a remote unix server and run a unix command. Please help. Regards, Pratyush
Version of com.aoindustries>ao-io-unix dependency
List of Version of com.aoindustries>ao-io-unix dependency
in unix which command is used to create files
in unix which command is used to create files  in unix which command is used to create files   The cat command in UNIX can be used to create and display information from a file. Command to create a file % cat >
Unix and Perl Programmer
Unix and Perl Programmer       Position Vacant: Unix and Perl Programmer  Job Description  We are looking for Perl Programmers with Unix
What is difference between UNIX Hosting and Window Hosting?
What is difference between UNIX Hosting and Window Hosting?  Which host to select? Unix or Windows or Linux? I want more information about... to learn about these technologies. What is difference between UNIX Hosting
Maven Dependency ao-io-unix >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.aoindustries >> ao-io-unix version1.0.0 in your project
Maven Dependency ao-io-unix >> 1.0.1
You should include the dependency code given in this page to add Maven Dependency of com.aoindustries >> ao-io-unix version1.0.1 in your project
how to search a text in all files in a folder in unix
a text in all files in a folder in unix? Thanks   Hi, I Ubuntu or any

Ads