The JavaScript placed on the page by the window seems to detect any time the user presses the enter key and opens the window.... Since I have search field on that page this causes a problem. Suggestions?
function RadWindowprompt_detectenter(id, ev, input) |
{ |
if (!ev) ev = window.event; |
if (ev.keyCode == 13) |
{ |
var but = input.parentNode.parentNode.getElementsByTagName("A")[0]; |
if (but) |
{ |
if (but.click) but.click(); |
else if (but.onclick) |
{ |
but.focus(); var click = but.onclick; but.onclick = null; if (click) click.call(but); |
} |
} |
return false; |
} |
else return true; |
} |