# New window - plain?

**URL:** <https://forum.kirupa.com/t/new-window-plain/57567>\
**Category:** Uncategorized\
**Created:** [July 14, 2004, 11:04am UTC](https://forum.kirupa.com/t/new-window-plain/57567 "2004-07-14T11:04:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pucca](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@pucca](https://forum.kirupa.com/u/pucca)\
**Post date:** [July 14, 2004, 11:04am UTC](https://forum.kirupa.com/t/new-window-plain/57567/1 "2004-07-14T11:04:51Z")

</div>

I’ve done everything Kirupa told me to - [Using Javascript to Open New Window](http://www.kirupa.com/developer/flash5/newwindow.htm)  
but my window still opens with the adress bar, links, etc.  
What must I 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:** [July 14, 2004, 3:51pm UTC](https://forum.kirupa.com/t/new-window-plain/57567/2 "2004-07-14T15:51:28Z")

</div>

Are you following a tutorial? Please post up the code you are using.

---

<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:** [July 15, 2004, 6:57am UTC](https://forum.kirupa.com/t/new-window-plain/57567/3 "2004-07-15T06:57:09Z")

</div>

> [@Mango](#):
>
> Are you following a tutorial? Please post up the code you are using.

I used the tutorial : [http://www.kirupa.com/developer/flash5/newwindow.htm](http://www.kirupa.com/developer/flash5/newwindow.htm).

U create a button in flash and add Javascript to it (in html). Kirupa said you can change the scrollbar=no, links=no, etc. But it doesn’t work!!! : (

---

<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:** [July 15, 2004, 6:58am UTC](https://forum.kirupa.com/t/new-window-plain/57567/4 "2004-07-15T06:58:05Z")

</div>

can we have the code?

---

<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:** [July 16, 2004, 10:13am UTC](https://forum.kirupa.com/t/new-window-plain/57567/5 "2004-07-16T10:13:24Z")

</div>

> [@bombingpixels](#):
>
> can we have the code?

Here’s the HTML-code ('cause the tutorial tells you to copy javascript {red writing} into html.) Don’t know if this will help. I’m still a beginner at this stuff.:sigh:

Hope u can help me.

\<HTML\>  
\<HEAD\>  
\<meta http-equiv=Content-Type content=“text/html; charset=ISO-8859-1”\>  
\<TITLE\>window\</TITLE\>  
\</HEAD\>  
\<BODY bgcolor=“#00CC00”\>  
\<!-- URL’s used in the movie–\>  
\<A HREF=[http://localhost/pneumatix/index.htm&gt;&lt;/A&gt](http://localhost/pneumatix/index.htm&gt;&lt;/A&gt); \<!-- text used in the movie–\>  
\<OBJECT classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000”  
codebase=“[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0)”  
WIDTH=“200” HEIGHT=“50” id=“window” ALIGN=“”\>  
\<PARAM NAME=movie VALUE=“window.swf”\> \<PARAM NAME=quality VALUE=high\> \<PARAM NAME=bgcolor VALUE=#00CC00\> \<EMBED src=“window.swf” quality=high bgcolor=#00CC00 WIDTH=“200” HEIGHT=“50” NAME=“window” ALIGN=“”  
TYPE=“application/x-shockwave-flash” PLUGINSPAGE="\<A href=“[http://www.macromedia.com/go/getflashplayer"&gt;&lt;/EMBED"&gt;http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer%22&gt;&lt;/EMBED%22&gt;http://www.macromedia.com/go/getflashplayer)”\>\</EMBED\>  
\</OBJECT\>  
[color=red]\<SCRIPT LANGUAGE=“JavaScript”\> [/color]  
[color=red]\<!-- Begin [/color]  
[color=red]function Launch(page) { [/color]  
[color=red]OpenWin = this.open(page, “breath\_of\_God”, “toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=700,height=500”); [/color]  
[color=red]} [/color]  
[color=red]// End –\> [/color]  
[color=red]\</SCRIPT\> [/color]  
\</BODY\>  
\</HTML\>

---

<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:** [July 18, 2004, 5:01pm UTC](https://forum.kirupa.com/t/new-window-plain/57567/6 "2004-07-18T17:01:14Z")

</div>

Ok your javascript code should not be there. Javascript should always go into the head of the document. So place this here instead. But i don’t think this fixes the problem, its just the correct placement of the javascript.

```auto
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>window</TITLE>

<SCRIPT LANGUAGE="JavaScript"> 
<!-- Begin 
function Launch(page) { 
OpenWin = this.open(page, "breath_of_God", "toolbar=no,menubar=no,location=no,scrollbars=no,re sizable=no,width=700,height=500"); 
} 
// End --> 
</SCRIPT>

</HEAD>
<BODY bgcolor="#00CC00">
<!-- URL's used in the movie-->
<A HREF=http://localhost/pneumatix/index.htm></A> <!-- text used in the movie-->
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/...version=6,0,0,0"
WIDTH="200" HEIGHT="50" id="window" ALIGN="">
<PARAM NAME=movie VALUE="window.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#00CC00> <EMBED src="window.swf" quality=high bgcolor=#00CC00 WIDTH="200" HEIGHT="50" NAME="window" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="<A href="http://www.macromedia.com/go/getflashplayer"></EMBED">http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</BODY>
</HTML>

```

As i was trying out javascript windows also, when you tested it… how did you go about doing it? if you went to Control \> Test movie, this will not work, well this was the case with Flash MX, which is what I use.  
You have to go to File \> Publish Preview \> HTML, and then see if this works. I use Flash MX by the way, so it might be a bit different. Hope that helps?!

:kir:
