If you mean disallow by restrict then you can watch for the enter keystroke like this:
Sub textArea_onkeyup
If window.event.keycode = 13 Then
textArea.value = Left(textArea.value, Len(textArea.value - 1))
End If
End Sub
I think that should work, sorry if it doesn't. Hope I've helped... "A computer scientist is a person who knows when it is time to hit the computer."
Try this:
Sub textArea_onkeydown
If window.event.keycode = 13 Then
window.event.returnvalue = false
End If
End Sub
that should cancel the event but I don't know if it will cancel the enter from being put in.
Hope THIS works! "A computer scientist is a person who knows when it is time to hit the computer."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.