Accessing form field value
Using property
Document.formname.fieldname.value
we can access field values
e.g.
<html>
<head>
<title>My first web page</title>
</head>
<body>
<form name="myform">
Name : <input type="text" name="myname">
<input type="button" value="Click" onclick=alert (document.myform.myname.value)>
Using property
Document.formname.fieldname.value
we can access field values
e.g.
<html>
<head>
<title>My first web page</title>
</head>
<body>
<form name="myform">
Name : <input type="text" name="myname">
<input type="button" value="Click" onclick=alert (document.myform.myname.value)>
</form>
</body>
</html>
Accessing form field value
Related Topics:
</body>
</html>
Related Topics:
- JavaScript Introduction
- Variables in JavaScript
- JavaScript Function
- Accessing JavaScript Function
- Creating JavaScript interactive form
- Accessing form field value
- Creating interactive form login webpage
- Networking Fundamentals
- TCP/IP and Internet addressing
- Internet Working
- Internet Working Servers
- Concept and need for web publishing
- Web languages
- Javascript Control Structure
- Checking Text is Letter/s
- Checking Text is Number/s
- Checking Textbox is Empty or not
- Addition of two numbers
- Subtraction of two numbers
- Multiplication of two numbers
- Division of two numbers
- Form field validations
- Email validation