Monday 17 October 2011

JAVA SCRIPTING(LESSON 1)

<html>
<head><title>REGISTRATION FORM</title></head>
<script langauge="javascript">
     function check(){
    if(document.f1.t1.value==""){
    alert("Write Username");
    document.f1.t1.focus();
     return false;
}   if(document.f1.t2.value==""){
     alert("write the password")
    document.f1.t2.focus();   return false;
}
     return true;
}
   
</script>
<body>
<bg sound src="http://www.flv2mp3.com/download/index/id/76608214/title/Hp_dv6t-2300_Quad_edition' target='_blank'>http://www.flv2mp3.com/download/index/id/76608214/title/Hp_dv6t-2300_Quad_edition"loop=infinte">


<center>
<form name ="f1">


Name<input type="text" Name="t1" value=""/><br/>


Last Name<input type="text"Name="t2" value=""/><br/>


Password<input type="password" Name="p1"value=""/><br/>


Re-type<input type="password"Name="p2"value=""/><br/>


<input type="submit"name="b1" value="submit" value=""onclick="javascript:return check();"/><input type="reset"Name="b2"value="reset">

No comments:

Post a Comment

Blogger Widgets Twitter Bird Gadget