showModalDialog() Jumping to Bottom of Popup's Body

Giganews Newsgroups
Subject: showModalDialog() Jumping to Bottom of Popup's Body
Posted by:  Jamie Jackson (wasteNOSPAMbask…@bigfoot.com)
Date: Wed, 03 Sep 2003

I'm using showModalDialog() to popup a window with some long text,
followed by a couple of form elements. The content of the popup
scrolls, since the content is longer to than the window. However, when
it first opens, it is positioned at the bottom of the modal window's
content, so one has to scroll to see the beginning of the content. It
happens to be positioning the window so the bottom of the submit
button is at the bottom of the popup.

Does anyone have any idea how to get the dialog to have the uppermost
text positioned where it should be (at the top)?

I tried popping up the url with ...#top at the end, and adding an
anchor to the start of the popup content, but had no luck.

Thanks,
Jamie

Replies