Register

Can a Viewlet force the browser to Scroll Up?

General Tips & Tricks
Site Admin
Posts: 1078
Joined: Fri May 26, 2006 3:15 pm
Location: San Jose, CA

Can a Viewlet force the browser to Scroll Up?

Postby James » Thu Mar 10, 2011 2:48 pm

Question: I have a Viewlet that is too tall for some browsers to fit without scrollbars. How can I have it scroll back to the top with a click of a button?

autoscrollup.png


Here is a Viewlet to show you how easy this is to do: http://www.viewletcentral.com/vc/viewlet/758218724/

The code used in the Javascript event is:
Code: Select all
window.scrollTo(0,0);


Thanks to Rado for the Viewlet!


James

Return to FAQs - ViewletBuilder 6.x

Who is online

Users browsing this forum: No registered users and 1 guest