Java Script Note - First information form 5.11
<html>
<head>
<title>first information form</title>
<script language="JavaScript">
function show()
{
message1=document.diksha.firstname.value;
message2=document.diksha.lastname.value;
message3=document.diksha.address.value;
message4=document.diksha.phone.value;
showin=window.open("","",'directories=no,toolbar=no,status=no,width=400,height=300')
showin.document.write("<center><h1><font color='chocolate'>the user information</font></h1><dr>");
showin.document.write("First name: ");
showin.document.write(message1);
showin.document.write("<br>Last name: ");
showin.document.write(message2);
showin.document.write("<br>Address: ");
showin.document.write(message3);
showin.document.write("<br>Phone: ");
showin.document.write(message4);
showin.document.bgColor="yellow";}
</script>
</head>
<body>
<h1> PRELIMINARY USER INFORMATION</H1>
please enter following data, when you will press show button all information will be displayed in new window
<form name="diksha">
F.NAME<input type="text" length="20"name="firstname"><br>
L.NAME<input type="text" length="20" name="lastname"><br>
ADDRESS<input type="text"length="20"name="address"><br>
PHONE<input type="text" length="20" name="phone"><br>
<input type="button" value="show" onClick="show()"><br>
</form>
</body>
</html>
0 Comments