View Full Version : Why does IE have to be such a pain in the neck all the time? SWF onclick

09-18-2007, 07:35 PM
<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="600" height="300" onclick="window.location.href='http://somewebsite.com/'">
This works in FF but not in IE.

Thanks in advance for your help.

09-18-2007, 08:16 PM
SWFObject (http://blog.deconcept.com/swfobject/) is a better solution.

09-18-2007, 11:25 PM
I guess the most cross-browser compatible way would be to include the onclick event, or a clickable area, respectively, in the flash object itself (Actionscript).