Can I move page above hash?

Joined
Sep 9, 2013
Messages
1
Reaction score
0
Hello all,

I have an iframe in my page, and a treeview control. When users click on a tree-node, I set the corresponding page as source of the iframe.

The page scrolls vertically. When the tree is long, and user clicks on a node somewhere at bottom, I want the page to move to the top, so the user sees the top of the page. The page has a banner that comes from the 'master page'.

I am able to call javascript to make the page move only to top of the banner:
location.hash = '#banner';

My problem is that the page moves correctly to the banner, but shows horizontal scrollbar about an inch above the bottom. The scrollbar is not the issue, but its position 1 inch from bottom is the problem. Is there a way to prevent this, and make the page move to the banner top?

Thanks in advance
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top