P
PNR
I have a problem making a deafultbutton that works cross browser, I tried
setting a defaultbutton on a panel, but that diden't work in Firefox. I have
also tried to use som java-script:
I have added a "onkeydown" event to the textbox that shall belon to a
certain button
<script type="text/javascript" language="JavaScript1.2">
function defaultButtonFunktion(evt, btn) {
var keyCode = evt.which ? evt.which : evt.keyCode;
if (keyCode == 13) {
evt.returnValue=false;
evt.cancel = true;
btn.click();
}
}
</script>
This also dossen't work in FireFox.
What do I do?
Thanks in adavance
setting a defaultbutton on a panel, but that diden't work in Firefox. I have
also tried to use som java-script:
I have added a "onkeydown" event to the textbox that shall belon to a
certain button
<script type="text/javascript" language="JavaScript1.2">
function defaultButtonFunktion(evt, btn) {
var keyCode = evt.which ? evt.which : evt.keyCode;
if (keyCode == 13) {
evt.returnValue=false;
evt.cancel = true;
btn.click();
}
}
</script>
This also dossen't work in FireFox.
What do I do?
Thanks in adavance