Hi,
I have the following code which works fine in IE but does not in Firefox:
I have tried a number of variations - without success. The idea is that when a user enters a space in the input box a plus sign is shown.
Any answers? Can Firefox do this?
I have the following code which works fine in IE but does not in Firefox:
Code:
<html> <head>
<title>space-plus</title>
<script type="text/javascript">
<!--
function alpha(e) {
if(e.keyCode==32) {return (e.keyCode=43);}
}
// -->
</script>
</head> <body> <form>
<input type="text" onkeypress="return alpha(event);">
</form> </body> </html>
Any answers? Can Firefox do this?
Comment