By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,516 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,516 IT Pros & Developers. It's quick & easy.

scrolling to the top of a pop up window on page load

P: 1
hi,
i am working on dotnet. I have a pop up window opening from the basepage.
The pop up window contains only datagrids and a button. On page load i need to point to the top of the page. The problem is on page load when there are no editable controls in the webpage, then by default the dotnet sets the focus to the button. so even if i use winow.scroll or anyother scrolling function, it does not work.
Could somebody help me out with it.
Thanks in advance
Deepak
Nov 22 '07 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
Welcome to TSDN!

Try: window.scrollTo(0,0).
Nov 22 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.