# Pop up window and its Java Script

**URL:** <https://forum.kirupa.com/t/pop-up-window-and-its-java-script/181675>\
**Category:** Uncategorized\
**Created:** [March 11, 2006, 9:13pm UTC](https://forum.kirupa.com/t/pop-up-window-and-its-java-script/181675 "2006-03-11T21:13:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chari](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@chari](https://forum.kirupa.com/u/chari)\
**Post date:** [March 11, 2006, 9:13pm UTC](https://forum.kirupa.com/t/pop-up-window-and-its-java-script/181675/1 "2006-03-11T21:13:59Z")

</div>

Hi. I have a trouble with completing my site where you are supposed to be able to view a pop-up window by clicking a button on that site. I just went to  
[http://www.kirupa.com/developer/flash8/centered\_popup\_window2.htm](http://www.kirupa.com/developer/flash8/centered_popup_window2.htm)

and tried to learn how to create a pop-up window in Flash.  
I did create something in Flash and broght the html file into DreamWeaver and added JavaScript Codes which launches a pop-up window by clicking a particular button that I just created in Flash.  
When I review the html file in Safari and try to launch the pop-up window, there is always an error message saying

“Safari can’t use JavaScript for this action.  
Safari can’t run the script “openNewWindow(‘clip.html’,‘clipwindow’,‘width=400,height=316,toolbar=no,scrollbars=no’)” because Safari doesn’t allow JavaScript to be used in this way.”

Does anybody know what I may need to fix in order to make my pop-up wondow file work in a browser?

Any Comment would be appreciated.  
I am using Flash MX 2004 on Mac OS-X.
