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

S

Shaun McKinnon

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
 
T

Thomas 'PointedEars' Lahn

Shaun said:
<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
 
D

dillon

Shaun McKinnon said:
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
 
M

Michael Winter

on 12/11/2003:
blows up
to and

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top