# Flash + JS: Detecting onBlur

**URL:** https://forum.kirupa.com/t/flash-js-detecting-onblur/55244
**Category:** flash
**Created:** [June 22, 2004, 9:28am UTC](https://forum.kirupa.com/t/flash-js-detecting-onblur/55244 "2004-06-22T09:28:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![as\_clark20](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@as\_clark20](https://forum.kirupa.com/u/as_clark20)
#### Post date: [June 22, 2004, 9:28am UTC](https://forum.kirupa.com/t/flash-js-detecting-onblur/55244/1 "2004-06-22T09:28:58Z")

</div>

Hi everyone,

I’m trying to come up with a flash movie that will play a movie, lets say it will display the message “come back” when the user opens a new window thereby shifting the focus to a new window.

How would this be possible? I’ve seen it a few times on some sites. I am guessing it would be something like a Javascript function that detects window.onBlur or something.

Can anyone she any light on this matter?
