Click to See Complete Forum and Search --> : Form onsubmit mystery


florida
02-12-2003, 10:44 AM
I have a HTML form in Netscape 4 that calls a Javascript Function and it works great but after I put in the <ilayer> it seems to ignore the onSubmit return myFunction. Basically after I add the <ilayer> it eliminates the onSubmit "MyFunction" part. Is there something I can do to get "myFunction" to work in the <ilayer>??
The MyFunction() is validating form data entry. The form still works with <ilayer> but it ignores the MyFunction part.

<ilayer=l1>
<form name="mypage" action="otherpage.html" onSubmit="return myFunction();">

//form stuff here

</form>
</ilayer>

I also tried 3 other ways putting the function in the input part and taking the onsubmit out of the <form> area, and it still doesnt work:
<input type=button onClick="myFunction()">
<input type=button onClick="return myFunction();">
<input type=button onClick="return myFunction()">

khalidali63
02-12-2003, 12:22 PM
"<ilayer=l1>"

Does not look correct declaration of an ilayer element.

Khalid