# How to write onblur into openWinCentre

**URL:** <https://forum.kirupa.com/t/how-to-write-onblur-into-openwincentre/280474>\
**Category:** flash\
**Created:** [January 28, 2009, 2:51am UTC](https://forum.kirupa.com/t/how-to-write-onblur-into-openwincentre/280474 "2009-01-28T02:51:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![will\_s](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@will\_s](https://forum.kirupa.com/u/will_s)\
**Post date:** [January 28, 2009, 2:51am UTC](https://forum.kirupa.com/t/how-to-write-onblur-into-openwincentre/280474/1 "2009-01-28T02:51:48Z")

</div>

I use this code all the time, I think I got here and it works great:

```auto
on (release) {
    //customize the window that gets opened
    // 0 equals NO.
    // 1 equals YES.
    address = "http://www.amazon.com";
    target_winName = "amazonWindow";
    width = 987;
    height = 787;
    toolbar = 0;
   etc, etc.
    //sends data back to the function
    openWinCentre(address, target_winName, width, height, toolbar, etc, etc.);

```

This has an attendant function on the first frame.

Since I have four such windows–none of my own making, I need to add onblur to this coding somehow, so each one will close when another needs to open. I think something like this would go in the function:

```auto
('<onblur="window.close();">');

```

and something like this:

```auto
onblur = 1;

```

would go in the on (release) list.

But I don’t how to write them or where they go.

Thanks.
