# IE Flash/Javascript Question

**URL:** <https://forum.kirupa.com/t/ie-flash-javascript-question/162593>\
**Category:** flash\
**Created:** [September 14, 2005, 4:24pm UTC](https://forum.kirupa.com/t/ie-flash-javascript-question/162593 "2005-09-14T16:24:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bleedmedia](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bleedmedia](https://forum.kirupa.com/u/bleedmedia)\
**Post date:** [September 14, 2005, 4:24pm UTC](https://forum.kirupa.com/t/ie-flash-javascript-question/162593/1 "2005-09-14T16:24:16Z")

</div>

Hello,

I have several buttons within my swf that change the background image of the HTML page it is embedded in.

on (release) {  
getURL(“javascript:document.body.background=‘i/1.jpg’”);  
}

This works great in Safari, but completely fails and even crashes in IE. I have no JavaScript tag within the \<head\> of the HTML page, but as I mentioned, it works in Safari. Does any one know either a better JavaScript to run, or a better way of doing this on click? I’ve attached the FLA.

Thanks a lot!
