[Javascript] TextArea Scroll
Terry Riegel
riegel at clearimageonline.com
Tue Oct 3 14:34:58 CDT 2006
Hello Again,
Is it possible to "hijack" the normal function a key has. For example
I would like to scan for CMD-F and if it is pressed run my search
code. It seems to work except after my code runs then the browser
gets the event and opens up the search dialog box. Is there a way
after receiving the key event to stop it from going any further?
Thanks,
Terry
On Oct 3, 2006, at 1:42 PM, Terry Riegel wrote:
> Hello everyone,
>
> Does anyone know how to scroll a textarea to the currently selected
> text? I am creating a search for my textarea, and I use
> txtarea.setSelectionRange(st,en) to set the selection but when the
> selection is out of view I would like to auto scroll to it.
>
> Any help would be appreciated.
>
> Terry Riegel
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list