The BOTTOM LINE Quote Of The Day

The BOTTOM LINE Quote Of The Day

Don't Ever Tell GOD How BIG Your Problems are.
Just Tell Your Problems How BIG your GOD is ;)

Tuesday, October 30, 2012

create an entry in form having two boxes

<html>
<head>
<script>

var name=prompt("Enter the first name");
var lname= prompt("Enter your last name");

window.onload= function abc()
{
document.getElementById("name").value= name;
document.getElementById("lname").value= lname;
}

</script>
</head>

<body>
First Name::<input type="text" value='' id="name"/>
</br>
Last Name:<input type="text" value='' id="lname"/>
</body>

</html>

No comments:

Post a Comment