# Action Code

**URL:** <https://forum.kirupa.com/t/action-code/216395>\
**Category:** flash\
**Created:** [February 16, 2007, 3:22am UTC](https://forum.kirupa.com/t/action-code/216395 "2007-02-16T03:22:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonyusa](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@tonyusa](https://forum.kirupa.com/u/tonyusa)\
**Post date:** [February 16, 2007, 3:22am UTC](https://forum.kirupa.com/t/action-code/216395/1 "2007-02-16T03:22:37Z")

</div>

Hello to all.

I am trying to make a page open in a new page from home page when you click on the Picture button, i want to open in a new page (via another link). So, when you open that page, I want to add only one button saying “Close the window”. So, what should the action codes be for the button in order when clicked on it to close the window instead of clicking on the X.

Thanks!
