# Link on a div containing swf

**URL:** <https://forum.kirupa.com/t/link-on-a-div-containing-swf/295277>\
**Category:** web dev\
**Created:** [August 27, 2009, 3:18pm UTC](https://forum.kirupa.com/t/link-on-a-div-containing-swf/295277 "2009-08-27T15:18:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eagle1](https://avatars.discourse-cdn.com/v4/letter/e/eb8c5e/32.png) [@Eagle1](https://forum.kirupa.com/u/Eagle1)\
**Post date:** [August 27, 2009, 3:18pm UTC](https://forum.kirupa.com/t/link-on-a-div-containing-swf/295277/1 "2009-08-27T15:18:21Z")

</div>

Hi there !

I embed a flash swf into a div (with swf object), and on this div I’ve a onclick event  
which open a new window.

The onclick is still working but everywhere outside the swf file. When  
I click on the swf image, nothing happens…

I tried to put the onclick directly on the flash content div or in a  
div that contains the flash content, but it’s the same.

any trick ?

(no a link because I need to close that new window by js)
