# Onload Page Close

**URL:** <https://forum.kirupa.com/t/onload-page-close/182778>\
**Category:** flash\
**Created:** [March 21, 2006, 12:21pm UTC](https://forum.kirupa.com/t/onload-page-close/182778 "2006-03-21T12:21:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abystus](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@abystus](https://forum.kirupa.com/u/abystus)\
**Post date:** [March 21, 2006, 12:21pm UTC](https://forum.kirupa.com/t/onload-page-close/182778/1 "2006-03-21T12:21:29Z")

</div>

I was wondering how I would make a flash file that could close a page through javascript on the onload of the flash file. I have the code to close the window, just needing how to get it to run on the onload of the flash file. Any help is appreciated, its for a project im doing. Thanks again.

-Abystus

---

<div class="post-metadata">

**Author:** ![RoboLlama](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@RoboLlama](https://forum.kirupa.com/u/RoboLlama)\
**Post date:** [March 21, 2006, 10:58pm UTC](https://forum.kirupa.com/t/onload-page-close/182778/2 "2006-03-21T22:58:16Z")

</div>

Try looking here:

[http://weblogs.macromedia.com/flashjavascript/](http://weblogs.macromedia.com/flashjavascript/)
