A
ashok.dhananjeyan
Hi,
Actually , I wrote one javascript to retrieve the name of the form in
one particular page.
what i did in this page is,
<script>
function checkbutton()
{
var f = document.forms("myform");
alert(f) ;
alert(f.name) ;
alert(f.name.value) ;
}
</script>
<html>
<body>
<form name="myform" >
Click Here to check the value of name button
<input type=button name='name' value='Click Here'
onclick='checkbutton();' >
</form>
</body>
</html>
but i can not able to retrieve the name of the form , only i get the
object of element.so how can i get the form name.
there is any other way to get the form name. or element name cannot be
a 'name'.
Please reply me ASAP.
Regards
Ashok D.
Actually , I wrote one javascript to retrieve the name of the form in
one particular page.
what i did in this page is,
<script>
function checkbutton()
{
var f = document.forms("myform");
alert(f) ;
alert(f.name) ;
alert(f.name.value) ;
}
</script>
<html>
<body>
<form name="myform" >
Click Here to check the value of name button
<input type=button name='name' value='Click Here'
onclick='checkbutton();' >
</form>
</body>
</html>
but i can not able to retrieve the name of the form , only i get the
object of element.so how can i get the form name.
there is any other way to get the form name. or element name cannot be
a 'name'.
Please reply me ASAP.
Regards
Ashok D.