Scrolling modal dialog to top
I have an ASP.NET application that displays a modal dialog with a scrollbar (using window.open).
The form is larger than the size of the window I am opening. The idea is that the dialog opens in the middle of the screen and the user is then able to use the vertical scroll bar to scroll to the required section of the form.
The problem is: when the form appears the window is automatically scrolled to the bottom of the form. Using window.scrollTo(0,0) to move to the top of the form has no affect.
What am I doing wrong?
Cheers,
Gary
|