[Javascript] Is this right Javascript?
David T. Lovering
dlovering at gazos.com
Wed Apr 9 07:57:01 CDT 2003
I'm assuming that the object of the game is force the focus back onto
formulario whenever a key is pressed. (Yes? No? Maybe?). Very dangerous --
no way to submit the form, or jump to the next field, but doable:
Try
<body onkeypress='document.formulario.richtext.focus()'>
....
Of course, the safest way is to attach the onkeypress event handler
to all the objects you want to be in whenever a keystroke SHOULD force
the focus. ... assuming I haven't completely misguessed your intentions.
-- Dave Lovering
Sabrina Leandro wrote:
>
> Hi,
>
> Could someone tell me if this would work? Considering
> there is a richtext element in a form called
> formulario?
>
> function
> window.document.formulario.richtext.onkeydown() {
> return SetFocus();
> }
>
> thanks,
> Sabrina
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more
> http://tax.yahoo.com
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list