944,082 Members | Top Members by Rank

Ad:
Nov 30th, 2007
0

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

Expand Post »
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();
}
}
Reputation Points: 8
Solved Threads: 0
Newbie Poster
sivakumarl is offline Offline
17 posts
since Nov 2007
Nov 30th, 2007
0

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

Read this thread.
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: how to delete old session value
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: javascript date handler





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC