DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Matt Raible has been building web applications for most of his adult life. He started tinkering with the web before Netscape 1.0 was even released. For the last 16 years, Matt has helped companies adopt open source technologies (Spring, Hibernate, Apache, Struts, Tapestry, Grails) and use them effectively. Matt has been a speaker at many conferences worldwide, including Devoxx, Jfokus, ÜberConf, No Fluff Just Stuff, and a host of others. Matt is a DZone MVB and is not an employee of DZone and has posted 149 posts at DZone. You can read more from them at their website. View Full User Profile

Scroll To Top Of Page In GWT

  • submit to reddit
        Scrolling to the top of a page after a view transition can be useful when you're displaying banner ads on the top, or when you want to make a GWT application appear like a Web 1.0 application.

    public static native void scrollToTop() /*-{
        $wnd.scroll(0, 0);