>From our previous thread, where I was using that code:
>
>
>function FormLogin()
>{
> if (window.event.keycode == 32)
> {
> javascript:document.Login.submit()
> window.event.keyCode = 0
> event.returnValue = false
> }
>}
>
>
>In regards to that, I had to adjust the = to be ==. The single equal is an assignment.
>
>I also find that now everytime I go in this function, I can't do alert(window.event.keycode). It is always undefined. I put the alert just before the if. Any idea?
Right, I posted the function without checking the syntax from the VBScript conversion. Yes should have been
== and also I think your other problem is the case.
window.event.keycode should be
window.event.keyCode. Aren't case-sensitive languages great?
HTH