Menu
Hello I have written the following HTML page:
[code]
<html>
<body>
<form name=”search” method=”get” action=”b.php”>
<input type=”text” name=”query” id=”query” onkeydown=”if (window.event.keyCode == 13) { this.form.submit(); }” value=””></input>
</form>
</body>
</html>
sometimes when I press ‘Enter’ in the textfield, the target page b.php gets called twice.
Does anyone know what is causing it?
sometimes, it gets called only once.
I would appreciate any help in explaining what I am doing wrong