Link to home
Start Free TrialLog in
Avatar of lhutton
lhutton

asked on

Window Resize After Open

At http://boards.ancestry.com/mbexec?htx=board&r=rw&p=localities.oceania.newzealand.general the link "Links & Announcements" opens a window 360 x 400 in size, using the following script and link:

function Popup(sURL,sTitle,cx,cy){
if(screen){
leftPos=screen.width-cx-15;}
window.open(sURL,sTitle,"toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,top=0,left="+leftPos+",width="+cx+",height="+cy).focus();}

javascript:Popup('http://boards.ancestry.com/mbexec?f=viewboard&r=rw&p=localities.oceania.newzealand.general','Info','360','400')

I want to insert code in the *opened* window to change the size of the window to 640 x 480. I don't have access to the first window, so can't change the script above that is used.

Is this possible?
ASKER CERTIFIED SOLUTION
Avatar of avner
avner

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of avner
avner

self.resizeTo(640,480);
also use :
self.moveTo(0,0)
yeah, just put this between <head> and </head> on the child webpage,

<script language="JavaScript">
window.resizeTo(640,480);
</script>
Avatar of lhutton

ASKER

Where do I put these?
Avatar of lhutton

ASKER

Ah, spoke too soon :) Thanks, James!
Reduced points for split.
Accepted avner's comment.

Points for james_beilby here.

https://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=javascript&qid=20169098

Lunchy
Friendly Neighbourhood Community Support Moderator