Hi I don't know much about Java but I have been using the following script for Field validation and it works fine in IE. Can someone please tell me how to get this to work for both.
Thanks in advance.
<script>
function DoSubmit()
{
if (document.all.bill_name.value == '')
{
alert("Please enter valid name.")
}
else
{
document.form2.submit()
}
}
</script>
<form name="form2" method="post" action="ok.html">
Name: <input name="bill_name" type="text" size="30" />
<input type="button" name="Submit22" onClick="DoSubmit()" value="Submit" />
</form>
Thanks in advance.
<script>
function DoSubmit()
{
if (document.all.bill_name.value == '')
{
alert("Please enter valid name.")
}
else
{
document.form2.submit()
}
}
</script>
<form name="form2" method="post" action="ok.html">
Name: <input name="bill_name" type="text" size="30" />
<input type="button" name="Submit22" onClick="DoSubmit()" value="Submit" />
</form>