Solved

Window Resize After Open

Posted on 2001-08-15
7
264 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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

810 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