473,399 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

self.resizeTo and popup problem

Hello,

Using ie6 I open a popup with:
<a href="#"
onclick="javascript:window.open('TESTPOPUP.HTML',' POPUP','toolbar=0,location=0,directories=0,status= 1,menubar=0,scrollbar=0,scrollbars=0,resizable=0,c opyhistory=0,width=800,height=500,left=50,top=50') ;return
false;">TESTPOPUP</a>

Within the popup ('TESTPOPUP.HTML') I try to resize the window using :
<body onload="self.resizeTo(640,360);"></body>

However this gives me a popup window of pixel size 630x311 instead of
640x360
expected, How come??

Thanks.
Mar 19 '07 #1
1 4068
Forget this post, I just figured it out. It is because it includes the
status bar and the title bar and the borders of the window which is 640x360
"webgour" <ol***********@hotmail.comwrote in message
news:45***********************@news.skynet.be...
Hello,

Using ie6 I open a popup with:
<a href="#"
onclick="javascript:window.open('TESTPOPUP.HTML',' POPUP','toolbar=0,location=0,directories=0,status= 1,menubar=0,scrollbar=0,scrollbars=0,resizable=0,c opyhistory=0,width=800,height=500,left=50,top=50') ;return
false;">TESTPOPUP</a>

Within the popup ('TESTPOPUP.HTML') I try to resize the window using :
<body onload="self.resizeTo(640,360);"></body>

However this gives me a popup window of pixel size 630x311 instead of
640x360
expected, How come??

Thanks.

Mar 19 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bennie | last post by:
Hi, I can resize in IE whit window.resizeTo(widht,height) but it don't work for Netscape? Have try location.reload() in Netscape. But this don't work.... Any idear? Bennie,
10
by: David McCulloch | last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it. Why not? (Don't ask why I simply did not open the window with the new size....my original problem was how to open a...
4
by: Raymond Wilk | last post by:
I used javascript to open a new window, then used the following to close the new window on the next click: <body onBlur="self.close()" onClick="self.close()" bgcolor="#FFFFFF"> On the new window...
8
by: Frances Del Rio | last post by:
I'm getting Getting "Access is Denied" on resizeTo and moveTo methods in IE (IE 6.0..) I saw two posts about this from 7/6 & 7/7.. I suspect, like previous poster said, that this has to do w/MS...
14
by: Mark | last post by:
Hi, At the top of my php file I have got :- <body onblur="self.focus();"> so when I click off onto another window, my window comes back up in front which is perfect. The problem however, is...
6
by: rob | last post by:
Hi I'm trying to create a "roll-up" effect when a window loses focus and then "roll-down" when it regains focus. This statement works properly with every browser I can get my hands on EXCEPT...
2
by: wmarler | last post by:
Hi, I'm trying to make the browser window resize itself when a new page loads in the current window.It works for FireFox but not in IE6. I've tried putting this under head, body and at the very...
4
by: stevong | last post by:
It works on Konquerer though. I remember it works on IE too. I've tried window.close() too. Doesn't work on Firefox also. I've also tried to create a function. It doesnt work on Firefox also....
1
by: oliver gargour | last post by:
Hello, I am using the following code in a popup. <html> <head> <title></title> </head> <body onLoad="this.focus();" onblur="self.close"> <form action="" method="get">
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.