473,473 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Popup Window errors (i'm going to shoot myself in the face)

Okay, here's my problem...oh, and thanks in advance to all the help.

Here's my script:

<script type="text/javascript">
<!--
window.open("256fx/index.htm","","height=400,width=600");
//-->
</script>

When the popup appears, it starts as h400, and w600, but then it blows up to
the full size of the desktop. How do I get it to stop doing that, and stay
as 400 x 600???

Thanks,
Shaun McKinnon
Jul 20 '05 #1
3 1754
Shaun McKinnon wrote:
<script type="text/javascript">
<!--
window.open("256fx/index.htm","","height=400,width=600");
//-->
</script>

When the popup appears,
*If* it appears. I am blocking such onload windows by a browser pref, and
I am not the only one. Other users that cannot use such a feature will get
pissed off immediately since (unrequested) popups disturb and cost system
resources. Besides, you can configure your browser so that popups appear
as new tabs.
it starts as h400, and w600, but then it blows up to the full size of the
desktop.
Unless you are in control of prefs of the graphics shell of computers
in an Intranet, you cannot know the full size of the desktop, if there
is any.
How do I get it to stop doing that, and stay as 400 x 600???


I see three possibilities:

A) It happens because the window name (second argument of
window.open(...)) is an empty string.

B) The error lies within the popup's document, not within the above
method call. There is some JavaScript code in the document that
resizes the window again.

C) You got some bugs, including viruses and worms.
HTH

PointedEars
Jul 20 '05 #2
"Shaun McKinnon" <di****************@hotmail.com> wrote in message
news:0A*****************@news04.bloor.is.net.cable .rogers.com...
Okay, here's my problem...oh, and thanks in advance to all the help.

Here's my script:

<script type="text/javascript">
<!--
window.open("256fx/index.htm","","height=400,width=600");
//-->
</script>

When the popup appears, it starts as h400, and w600, but then it blows up to the full size of the desktop. How do I get it to stop doing that, and stay as 400 x 600???


Hi Shaun

Try adding resizable=0 in the last argument, should do the trick iirc,

dillon
Jul 20 '05 #3
"dillon" wrote on 12/11/2003:
"Shaun McKinnon" <di****************@hotmail.com> wrote in message
news:0A*****************@news04.bloor.is.net.cable .rogers.com...
Okay, here's my problem...oh, and thanks in advance to all the help.
Here's my script:

<script type="text/javascript">
<!--
window.open("256fx/index.htm","","height=400,width=600");
//-->
</script>

When the popup appears, it starts as h400, and w600, but then it
blows up to
the full size of the desktop. How do I get it to stop doing that,
and stay
as 400 x 600???


Hi Shaun

Try adding resizable=0 in the last argument, should do the trick

iirc,

The 'resizable' option is just supposed to stop adding resizing
borders to windows. That is, the user can't change the size. I
*think* that the window can still be resized with window.resizeBy/To.

Mike
Jul 20 '05 #4

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

Similar topics

13
by: dave yan | last post by:
hi, i have some forms which use javascript for data validation, e.g., checking to make sure all required fields are completed, checking that data falls within valid ranges for certain fields,...
38
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find...
3
by: Chris Geerdink | last post by:
i made myself a guestbook. when people want to write in it, a pop-up appears with the form. now this is what i want to happen when they wrote in it: the pop-up has to close itself ( self.close()...
17
by: Applebrownbetty | last post by:
Hi, I'd like to append/amend the following code from the Dreamweaver extension "Open Picture Window Fever" for the ability to center the PopUp window: By default, it allows the window to be...
7
by: E Michael Brandt | last post by:
I have been lurking here for some time, and now would like to ask a question of you clever coders: My JustSo PictureWindow 3 Extension for Dreamweaver has stumbled in the face of the new Opera...
13
by: ldan | last post by:
Hi everybody, I would not consider myself an expert in javascript - but so far whatever I know, helped me reaching my goals. Recently I started to experience a lot of javascript errors related...
0
by: wizardworkz | last post by:
Hello All! Having a bit of a problem combining php with javascript here. What I have is a store with images (There will be a smaller image of each item, and a larger image of each item, but I want...
1
by: dittu | last post by:
How to close the popup window when submitting the form? I have a sample.jsp. In that page one button is there. when button pressed, open popup window contains one "text box" and one " submit...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.