Hello
I have an input box and a button that runs a function taking the input as a parameter. The button click works fine. The problem is it needs to respond to the enter key. I have it responding to the enter key, but in both ff and ie it loads the function produces the correct output, but then it looks like the page refreshes and the output is gone.
Suggestions?
I have an input box and a button that runs a function taking the input as a parameter. The button click works fine. The problem is it needs to respond to the enter key. I have it responding to the enter key, but in both ff and ie it loads the function produces the correct output, but then it looks like the page refreshes and the output is gone.
Suggestions?
Code:
function test(e)
{
var e = e.keyCode
if (e == 13)
{
findit();
alert("Hi!")
}
}
Comment