# getURL window with maximize button accessible!

**URL:** <https://forum.kirupa.com/t/geturl-window-with-maximize-button-accessible/28968>\
**Category:** flash\
**Created:** [August 20, 2003, 4:27pm UTC](https://forum.kirupa.com/t/geturl-window-with-maximize-button-accessible/28968 "2003-08-20T16:27:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![artane](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@artane](https://forum.kirupa.com/u/artane)\
**Post date:** [August 20, 2003, 4:27pm UTC](https://forum.kirupa.com/t/geturl-window-with-maximize-button-accessible/28968/1 "2003-08-20T16:27:11Z")

</div>

hey guys,

I’ve been trying to get a bit of control over the “getURL” action. I want the window that pops up to be a particular size, centered and have the maximize button accessible (it always seems to be greyed-out).

heres the code I’ve been using:

on (release) {  
getURL("javascript:openNewWindow(‘[http://www.google.com](http://www.google.com)’,‘thewin’,‘height=600,width=400,maximize=yes,toolbar=no,sc  
rollbars=no’)

");  
}

This is all on one line. I’ve tried adding things like “maximize=yes” but that isn’t doing squat.

Within the HTML, I’ve got this:

\<script language=“JavaScript”\>  
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }  
\</script\>

Can somebody please help? I’ve tried a few of the components that are supposed to make this easy but, I haven’t found one that works properly yet.

Thanks very much,

artane

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 21, 2003, 10:17pm UTC](https://forum.kirupa.com/t/geturl-window-with-maximize-button-accessible/28968/2 "2003-08-21T22:17:36Z")

</div>

Well just cause you have “maximize=yes” doesnt mean the button will maximize it. How will Flash even know that code is for the button.

I highly doubt that there is a code for making a flash button that maximizes the window. Maybe there is, search google. Why in the hell would you try to make a button for maximize…when **browsers** already have a max button? Trust me dude, if you’re trying to make whatever your trying to make cooler by adding a max button, it won’t work.

But there is a code for just maximize the window as soon as it opens…I think it’s:

[AS]  
\<script\>  
top.window.moveTo(0,0);  
if (document.all) {  
top.window.resizeTo(screen.availWidth,screen.availHeight);  
}  
else if (document.layers||document.getElementById) {  
if (top.window.outerHeight\<screen.availHeight||top.window.outerWidth\<screen.availWidth){  
top.window.outerHeight = screen.availHeight;  
top.window.outerWidth = screen.availWidth;  
}  
}  
//–\>  
\</script\>  
[/AS]

It’s not actionscript, it’s html, this forums does allow you to post php and actionscript but not html…wierd. Anyways, put that code in the window thats gonna popup. I don’t know if it’ll work or not, I’ll search google if it’s possible to achieve what you’re trying to do.😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 23, 2003, 4:48pm UTC](https://forum.kirupa.com/t/geturl-window-with-maximize-button-accessible/28968/3 "2003-08-23T16:48:36Z")

</div>

Oh, Ok

Thanks Sharif, I really appreciate your help. I’m gonna give this a try. You’re right though, the max button isn’t gonna do squat for my site’s coolness factor. Ha 🙂

artane
