ES0en is compatible with Firefox ES1en and other major browsers with the carriage return listening button event
- 2021-01-06 00:42:23
- OfStack
<script>
// Compatible with FF
document.onkeydown=keyListener;
function keyListener(e){
e = e ? e : event;
if(e.keyCode == 13){
onsubmit();
}
}
</script>