This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes question regarding prevent default Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "question regarding prevent default" Watch "question regarding prevent default" New topic
Author

question regarding prevent default

simon tiberius
Greenhorn

Joined: Oct 30, 2012
Posts: 29


but when moving the scrollbar, the page still moves. how to stop the default behavior? thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
You can not cancel the scrolling of the page.

You can force the window to be at a certain location, by setting scrollTop inside of that function, but it will be jittery.

Eric
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: question regarding prevent default
 
Similar Threads
java.lang.NoSuchMethodError
Scratching my head over Eclipse / Ant build issue
WA #2 ..... word association
Opening a JFrame
enum constructors