- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Have a long form loaded from a menu on an initial screen. The form is longer than the screen. If the user scrolls the form, but then changes their mind and goes back to the first page menu then subsequently goes back to the form, the form page loads at the point they scrolled to previously, not the top of the form.
How do I ensure the form page displays from the top.
- Tags:
- HTML5
- Intel® XDK
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I recommend trying the following method to scroll the page to the top:
window.scrollTo(0, 0);
For more information on scrollTo() visit http://www.w3schools.com/jsref/met_win_scrollto.asp.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page