# Open window problems

**URL:** <https://forum.kirupa.com/t/open-window-problems/13132>\
**Category:** Uncategorized\
**Created:** [February 9, 2003, 1:17pm UTC](https://forum.kirupa.com/t/open-window-problems/13132 "2003-02-09T13:17:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mooler](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mooler](https://forum.kirupa.com/u/mooler)\
**Post date:** [February 9, 2003, 1:17pm UTC](https://forum.kirupa.com/t/open-window-problems/13132/1 "2003-02-09T13:17:28Z")

</div>

Hi got a really simple problem ( but I´m stuck and can´t figure the problem out. I want to open a window from within a swf no problem so far.  
I use following script in the html-file I want to open

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

And following script in my button in the .swf

javascript:openNewWindow(‘[http://www.macromedia.com](http://www.macromedia.com)’,‘thewin’,  
‘height=400,width=400,toolbar=no,scrollbars=yes’)

All of this according to the following instructions:

[http://www.macromedia.com/support/flash/ts/documents/popup\_windows.htm](http://www.macromedia.com/support/flash/ts/documents/popup_windows.htm)

But when I try it the window popsup but isn´t the right height or width (400,400) and it´s a blank page.

I´m attaching the .fla and pray that someone will have mercy over a poor rookie like me.  
=)

---

<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:** [February 9, 2003, 1:21pm UTC](https://forum.kirupa.com/t/open-window-problems/13132/2 "2003-02-09T13:21:30Z")

</div>

Seems like the script in the html page didn´t make it so here it is

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

removed begining and end tag of script.
