Solved

Window Resize After Open

Posted on 2001-08-15
7
270 Views
Last Modified: 2006-11-17
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?
0
Comment
Question by:lhutton
7 Comments
 
LVL 14

Accepted Solution

by:
avner earned 25 total points
ID: 6389653
self.resizeTo("100,100");
0
 
LVL 14

Expert Comment

by:avner
ID: 6389656
self.resizeTo(640,480);
0
 
LVL 14

Expert Comment

by:avner
ID: 6389657
also use :
self.moveTo(0,0)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:james_beilby
ID: 6389696
yeah, just put this between <head> and </head> on the child webpage,

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

Author Comment

by:lhutton
ID: 6389704
Where do I put these?
0
 

Author Comment

by:lhutton
ID: 6389707
Ah, spoke too soon :) Thanks, James!
0
 
LVL 2

Expert Comment

by:Lunchy
ID: 6389809
Reduced points for split.
Accepted avner's comment.

Points for james_beilby here.

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

Lunchy
Friendly Neighbourhood Community Support Moderator
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question