# New window without buttons / adres

**URL:** <https://forum.kirupa.com/t/new-window-without-buttons-adres/19455>\
**Category:** flash\
**Created:** [April 28, 2003, 1:47pm UTC](https://forum.kirupa.com/t/new-window-without-buttons-adres/19455 "2003-04-28T13:47:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yvro2000](https://avatars.discourse-cdn.com/v4/letter/y/eb9ed0/32.png) [@yvro2000](https://forum.kirupa.com/u/yvro2000)\
**Post date:** [April 28, 2003, 1:47pm UTC](https://forum.kirupa.com/t/new-window-without-buttons-adres/19455/1 "2003-04-28T13:47:20Z")

</div>

Hi,

I have build a website in Flash MX.  
One button open a new website with the code:

on (press) {  
getURL(“[http://www.abc.nl](http://www.abc.nl)”, “\_new”);  
}

Now i want that the opening website do not have a buttonbar and adresbar. How i can do that?

Please write the complete code becouse i’m not good in Flash.

Thanx.

Roland

---

<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:** [April 28, 2003, 2:32pm UTC](https://forum.kirupa.com/t/new-window-without-buttons-adres/19455/2 "2003-04-28T14:32:17Z")

</div>

you do that with javascript.  
the real code i don’t know, but it’s like this:  
open.new.window(adresbar=0; menubar=0)

look it up on site’s with code, there are a lot off these

good luck!

---

<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:** [April 28, 2003, 2:51pm UTC](https://forum.kirupa.com/t/new-window-without-buttons-adres/19455/3 "2003-04-28T14:51:54Z")

</div>

```auto
getURL("java script:window.open('http://www.kirupa.com','kirupa','location=0,toolbar=0');void(0);");

```

remove the space between java and script. =)

---

<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:** [April 28, 2003, 3:21pm UTC](https://forum.kirupa.com/t/new-window-without-buttons-adres/19455/4 "2003-04-28T15:21:48Z")

</div>

I have just a small question about that:

exactly what does the _void(0);_ part 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:** [April 28, 2003, 3:35pm UTC](https://forum.kirupa.com/t/new-window-without-buttons-adres/19455/5 "2003-04-28T15:35:00Z")

</div>

void specifies an expression to be evaluated without returning a value. try the script without void(0); and you’ll see… 😉

by the way… you could use it this way too.  
getURL(“javascript:void(window.open(‘url’,‘name’,‘settings’));”);

---

<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:** [April 28, 2003, 3:58pm UTC](https://forum.kirupa.com/t/new-window-without-buttons-adres/19455/6 "2003-04-28T15:58:59Z")

</div>

Also you can check out this tutorial for how to make borderless windows (without buttons and address bar). -\> [http://www.kirupa.com/developer/flash5/borderless.htm](http://www.kirupa.com/developer/flash5/borderless.htm)

That has all the instructions on how to do it.

Rock\_star

---

<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:** [April 28, 2003, 8:50pm UTC](https://forum.kirupa.com/t/new-window-without-buttons-adres/19455/7 "2003-04-28T20:50:30Z")

</div>

i think it should be a new popup window, thats if u dont want any address or tool or status bars. i have used the one on kirupa site and it works great to me, try it:

on (release) {  
//customize the window that gets opened  
// 0 equals NO.  
// 1 equals YES.  
address = “pics/p0.html”;  
target\_winName = “kirupa”;  
width = 300;  
height = 263;  
toolbar = 0;  
location = 0;  
directories = 0;  
status = 0;  
menubar = 0;  
scrollbars = 0;  
resizable = 0;  
//sends data back to the function  
openWinCentre(address, target\_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);  
}
