# Opening a browser window at a fixed size

**URL:** https://forum.kirupa.com/t/opening-a-browser-window-at-a-fixed-size/193529
**Category:** Uncategorized
**Created:** [July 13, 2006, 9:41pm UTC](https://forum.kirupa.com/t/opening-a-browser-window-at-a-fixed-size/193529 "2006-07-13T21:41:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ohls](https://avatars.discourse-cdn.com/v4/letter/o/59ef9b/32.png) [@Ohls](https://forum.kirupa.com/u/Ohls)
#### Post date: [July 13, 2006, 9:41pm UTC](https://forum.kirupa.com/t/opening-a-browser-window-at-a-fixed-size/193529/1 "2006-07-13T21:41:22Z")

</div>

Im trying to make a button to open a link, in a new window, at a fixed size and without toolbars etc.

Ive searched these forums and looked for variuos guides, but to no avail. I cant get them to work =(. I found a guide(which I cant find again o0) on Kirupa but it didnt work either.

heres what I came up with:

code1:

```auto
on (release) {
    getURL("http://img519.imageshack.us/img519/5747/screenie8ya.jpg", "_blank");
    target_winName = "test";
    width = 640;
    height = 458;
    toolbar = 0;
    location = 0;
    directories = 0;
    status = 0;
    menubar = 0;
    scrollbars = 1;
    resizable = 0;
}

```

Opens a new tab in firefox and displays the URL but not at the correct size or without the toolbars.

code2:

```auto
on (release) {
    getURL("javascript:window.open('http://www.newgrounds.com/','Newgrounds','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=80,height=180')");
}

```

\*Not my own code since I dont know any java.

\*Opens a new tab in firefox and displays “null” on a blank screen and the java code in the URL field.

code3:

```auto
on (release) {
 getURL("javascript:openWindow('http://www.newgrounds.com','newWindow','toolbar=0,location=0,directries=0,status=0,menubar=0,scrollbars=0,resizable=0,width=800,height=600,left=80,top=180')");
}

```

Opens a new empty tab in firefox.

Anyone got any clue as to how to get these to work? or a guide on one that works? or simply a script that will work?

thanks for your time =).
