| | |
how to set default button if there are more than one submit buttons in Firefox
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 12
Reputation:
Solved Threads: 0
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();
}
}
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();
}
}
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: how to delete old session value
- Next Thread: javascript date handler
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array browser captcha captchaformproblem cart checkbox child class close codes date debugger dependent developer disablefirebug dom editor element embed engine enter events explorer ext file firefox focus form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps marquee masterpage math matrixcaptcha media menu object onerror onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post programming prototype rated redirect runtime safari scale scriptlets scroll search security session shopping size software star starrating stars synchronous toggle tweet unicode variables web webservice wysiwyg \n






