Hi, everyone.
I'm trying to make this piece of code work.
<form name="myform" onsubmit="alert('1');"> </form>
<a href="javascript: void(0);" onclick="document.myform.submit();">ok</a>
However nothing happens when I click "ok". Where have I mistaken?