Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New window opening maximized when opening window maximized

Status
Not open for further replies.

NeeNee

Programmer
Apr 2, 2002
97
CA
I am using window.open to open a popup window 200 by 300 and it works great when the original window is not maximized. But as soon as it is, it ignores the height and width parameters and maximizes the popup window.
The resizable parameter is set to no.

Denis
Programmer, Canada
 
- Which browser(s)?

- Which OS(es)?

- Do you see any errors?

- Do you have any 3rd party browser tools installed that may be interfering (poopup blockers, Google/Yahoo!/etc toolbars, etc)?

- Can you post your code?

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Here is my code. Pretty straight forward.

vWinCal = window.open("", "Calendar", "width=300,height=275,status=no,resizable=no,top=200,left=200");

I am testing with IE 6.0 on XP Pro and there are no errors.

Maybe with some errors I may have been able to figure it out myself.

Denis
Programmer, Canada
 
With no 3rd party add-ons at all, my IE 6 on XP Pro works fine with this code, maximized or otherwise:

Code:
<html>
<head>
	<script type="text/javascript">
		function openWin() {
			vWinCal = window.open('', 'Calendar', 'width=300,height=275,status=no,resizable=no,top=200,left=200');
		}
	</script>
</head>

<body>
	<a href="javascript:openWin();">Open the window</a>
</body>
</html>

Save that locally, run it up, and see if it works for you.

if it does, that could point to something in your code...

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Dan, it appears the problem is with my browser settings. I had a coworker try it on their machine and it opened properly. I then tried my application on a different pc and it also worked properly.
So there really was no problem, but I can't find the setting in IE causing this.

Thanks again,

Denis

Denis
Programmer, Canada
 
Which leads me back to my earlier question:

- Do you have any 3rd party browser tools installed that may be interfering (popup blockers, Google/Yahoo!/etc toolbars, etc)?

Dan




Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top