# Javascript unloading swf

**URL:** <https://forum.kirupa.com/t/javascript-unloading-swf/245535>\
**Category:** Uncategorized\
**Created:** [November 30, 2007, 5:54pm UTC](https://forum.kirupa.com/t/javascript-unloading-swf/245535 "2007-11-30T17:54:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigbalroo](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@bigbalroo](https://forum.kirupa.com/u/bigbalroo)\
**Post date:** [November 30, 2007, 5:54pm UTC](https://forum.kirupa.com/t/javascript-unloading-swf/245535/1 "2007-11-30T17:54:42Z")

</div>

hey guys,

just a thought but can javascript unload an swf?

Basically i have a main.html and embedded is a main.swf, the main .swf once a button is click externally loads a pop\_up.swf into a container; all is well so far.  
In that pop\_up.swf there is a button that once is clicked opens in a new browser main2.html, would it be possible to put some javascript in main2.html to unload pop\_up.swf?

any help or advice is much appreciated

Bigbalroo :}
