program 1
1.Java script to check for input field should not be left empty .
=>program:-
Function valid()
{
If(document.validate.input.value.length==0)
{
alert(“please fill up the require field”);
}
else
{
alert(“you enter”+document.validate.input.value);
}
}
JSP PAGE
required field
<input type=”button” value=”ok” onclick=”valid()”/>
