954,219 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to set default button if there are more than one submit buttons in Firefox

Hi friends my form contains two submit buttons one is for back button
and another is for submit button when the user press enter in any textbox
the submit button will be .I wrote a javascript its working fine in IE
but not in FireFox please help me
///////////
document.onkeyup = KeyCheck;
function KeyCheck(e)
{
var KeyID = (window.event) ? event.keyCode : e.keyCode;
if(KeyID==13)
{

document.getElementById("ff").disabled=true;
document.getElementById("ss").focus();
document.getElementById("ss").click();
}
}

sivakumarl
Newbie Poster
17 posts since Nov 2007
Reputation Points: 8
Solved Threads: 0
 

Read this thread.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 733
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You