I have a simple form in my page as shown in the pic.
Is there a way to avoid the alert??. I find it annoying and in my case I don’t lose any important info if I reload the form.

<form name="theForm" method="get"> <!-- Changed from "post" to "get" but alert keeps showing -->
Start Point (
<input type="text" name="pt0x" size="4" onkeydown="keyDownPt(event, document.theForm.pt0x.value, 0, 'x')"/>,
<input type="text" name="pt0y" size="4" onkeydown="keyDownPt(event, document.theForm.pt0y.value, 0, 'y')"/> ); </br>
...
</form>
I don’t have a “send” button because I update my thing onkeydown event. Could this be the reason?
Since you are not actually doing anything with it, you could get rid of the form entirely.
EDIT for completeness:Not using a form tag is perfectly valid HTML and validates as HTML4 strict, HTML5 and XHTML transitional. The W3C validator is here.