Textarea Returns Page to Top Upon "Enter"
August 11, 2008 5:15 PM
Subscribe
Question about long forms, textareas, and unwanted scroll to page top on hitting "enter," possibly involving tinymce.
I have a longish, scrolling page which contains a form. If a user is filling out a textarea which is below the "fold" and they create a new paragraph by hitting enter or return, the page returns to the top, even though the cursor is still in the textarea and the new paragraph was properly inserted. In other words, the area they're working in disappears from sight and the page has to be scrolled down to see it again.
This is very very annoying. Is this browser-typical behavior, or something in the coding of tinymce (the wysiwyg editor added to textareas). Is there anything I can do to prevent this from happening which doesn't involve moving the textarea up the page?
posted by maxwelton to computers & internet (3 comments total)
I tried the current demo with Safari and Firefox 3 and made the form go below the fold. It behaves as expected.
Perhaps there is a JavaScript which changes focus onKeyUp?
posted by pedantic at 5:57 PM on August 11, 2008