New window - plain?

I’ve done everything Kirupa told me to - Using Javascript to Open New Window
but my window still opens with the adress bar, links, etc.
What must I do???

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.

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!!! : (

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></A> <!-- 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
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>
[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>

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.

<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: