# Javascript in flash8

**URL:** <https://forum.kirupa.com/t/javascript-in-flash8/176453>\
**Category:** Uncategorized\
**Created:** [January 24, 2006, 9:42am UTC](https://forum.kirupa.com/t/javascript-in-flash8/176453 "2006-01-24T09:42:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kcancert](https://avatars.discourse-cdn.com/v4/letter/k/a8b319/32.png) [@kcancert](https://forum.kirupa.com/u/kcancert)\
**Post date:** [January 24, 2006, 9:42am UTC](https://forum.kirupa.com/t/javascript-in-flash8/176453/1 "2006-01-24T09:42:01Z")

</div>

I have a problem with using JavaScript in Flash8.

**\<script language=“JavaScript”\>  
function launchwin()  
{  
newwin = window.open(“layout.html”,“portfolio”,“fullscreen=1, scrollbars=1”)  
newwin.resizeBy(15,0)  
}  
\</script\>**

layout.html is getting loaded in fullscreen which contains flash.

I have a close button in my layout, which I want, should close layout.html.

I put the following script to that button -

**on (release)  
{  
getURL(“javascript:window.close(‘portfolio’)”);  
};**

But it doesnt seem to work somehow. Please Help.
