Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

enter key not working in netscape6

Status
Not open for further replies.

dkarun

Programmer
Feb 22, 2005
3
US
I have a code which checks for eventcode==13, this is for making the enterkey work for submitting the form. This code is working good in IE6 and Netscape7 not in netscape6.

anyone knows plz help me in this.

Thanks in advance
dkarun

 
calling this function in <body onkeyup="enterPressed()">

function enterPressed() {

if (event.keyCode == 13) {

var googleGo = document.getElementById("googleGo");
googleGo.click();

}
}

the above code is working fine for ie6 and netscape7 not in netscape6.
 
little update in the above thread, like I have a page with two forms each contains one radio option button. Under each raadio option button I have three textboxes. I have the above code on the javascript part. without the javascript part first forms radiooption buttons textbox enterkey is working fine in netscape6,while I try to enterkey on the second forms radiooption buttons textbox it's not working.

anyone knows anything plz let me know

thanks in advance

dkarun
 
Add this to your body tag:
onKeyDown = alert(event.keyCode)

and then open the page in NN and press enter. See what keycode is returns, is it 13? I'd test but I don't have NN.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top