eranwein
01-30-2006, 02:08 AM
this is a code i wrote just to check something that didnt seem to work in my site.
when i press on the button i get an error: "object doesnt support this property or method".
i've checked it without the form and it worked. but when i place the button inside the form it doesnt. i've tried to switch between get and post and other things but i'm probably missing something.
<script>
function aaa(num)
{
alert(num);
}
</script>
<form name = "form1" action="" method="post">
<input type="button" name="aaa" value="press" onClick="aaa('3')" />
</form>
when i press on the button i get an error: "object doesnt support this property or method".
i've checked it without the form and it worked. but when i place the button inside the form it doesnt. i've tried to switch between get and post and other things but i'm probably missing something.
<script>
function aaa(num)
{
alert(num);
}
</script>
<form name = "form1" action="" method="post">
<input type="button" name="aaa" value="press" onClick="aaa('3')" />
</form>