File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Setting scroll bar position Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Setting scroll bar position" Watch "Setting scroll bar position" New topic

Setting scroll bar position

vishal pradhan

Joined: Aug 01, 2011
Posts: 5

Can anyone tell me how should i set scroll bar position after postback in struts using anchor tag in URL.
I was using but this is not working in iPad.
I want to get solution so that this will work on both platform that is ipad and Win OS.

Thanks in anticipation
Joe Ess

Joined: Oct 29, 2001
Posts: 8903

This doesn't sound like a Struts problem. This is a browser compatibility problem. I'll change the title and move it to a more applicable forum.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Rob Crowther
Ranch Hand

Joined: Nov 06, 2012
Posts: 295

If I understand the comments in this bug correctly, you should try using document.documentElement.scrollTop.

Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
I agree. Here's the link:
subject: Setting scroll bar position