Solved

Window Resize After Open

Posted on 2001-08-15
7
254 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now