# doClose Html window

**URL:** <https://forum.kirupa.com/t/doclose-html-window/137350>\
**Category:** Uncategorized\
**Created:** [February 13, 2005, 10:01pm UTC](https://forum.kirupa.com/t/doclose-html-window/137350 "2005-02-13T22:01:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmerens](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bmerens](https://forum.kirupa.com/u/bmerens)\
**Post date:** [February 13, 2005, 10:01pm UTC](https://forum.kirupa.com/t/doclose-html-window/137350/1 "2005-02-13T22:01:41Z")

</div>

hello,

I m calling with AS a new window with :

on (release) {  
image="‘[http://www.test.com/test.doc](http://www.test.com/test.doc)’";  
getURL (“javascript:NewWindow=window.open(”+image+",‘newWin’,‘width=208,height=304,left=400,top=300,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No’); NewWindow.focus(); void(0);");

}

now, is it possible, to add a boutton to my swf file in order to close the window newwin ?

something like :

on (release) {  
close te window newwin  
}

thanks for your help 🙂
