# On click closes pop window and changes the parent window URL

**URL:** <https://forum.kirupa.com/t/on-click-closes-pop-window-and-changes-the-parent-window-url/214422>\
**Category:** Uncategorized\
**Created:** [January 28, 2007, 10:31pm UTC](https://forum.kirupa.com/t/on-click-closes-pop-window-and-changes-the-parent-window-url/214422 "2007-01-28T22:31:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Multi\_Task](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Multi\_Task](https://forum.kirupa.com/u/Multi_Task)\
**Post date:** [January 28, 2007, 10:31pm UTC](https://forum.kirupa.com/t/on-click-closes-pop-window-and-changes-the-parent-window-url/214422/1 "2007-01-28T22:31:59Z")

</div>

Question about having a pop up window display flash movie, button within movie having the function of on click closes pop window and changes the parent window (which pop up came from) to navigate to new url. Having trouble with the parent changing. any ideas?

Thanks,  
MT

```auto

ready.onRelease = function () {
 getURL("javascript:window.close()");
 getURL("http://www.google.com" ,"target_parent");
}

```
