View Full Version : Positioning of the page in a popup window
pizzaguy
12-18-2002, 03:08 PM
I have a pop up window that loads a page from another web site. Is it possible that when the page loads, it will move/scroll to a particular position on that page. The reason I am doing this is because I want to show an image which is located down below. Since I have no control of that page, I can't insert an bookmark to it. Functioning in IE is good enough.
ecnarongi
12-18-2002, 06:15 PM
it is possible if there are anchors on that page will have to look at the code and check if so use an anchor after the URL to go the a specific spot, ie. http://www.mysite.com#midpage
where midpage is the name of an anchor
pizzaguy
12-18-2002, 06:54 PM
I can't put anchor in the page. I don't own that page. Is there any attribute that I can set in the window.open function so that the page will vertically offset to say 200px below the top left corner in the popup window?
zoobie
12-18-2002, 07:36 PM
Try putting all or part of this in and see what happens:
onload="scrollTo(0,200);"
ecnarongi
12-18-2002, 08:12 PM
pizzaguy (funny name) I know u don't own the code, look at the source of the page in question, and then apply what I said above
joeframbach
12-18-2002, 08:14 PM
are you just making this harder than it already is?
if you are trying to show a pic from a page, why not just show the pic in a popup?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.