# Javascript in Flash - Real Quick Question!

**URL:** https://forum.kirupa.com/t/javascript-in-flash-real-quick-question/134091
**Category:** Uncategorized
**Created:** [January 14, 2005, 2:48pm UTC](https://forum.kirupa.com/t/javascript-in-flash-real-quick-question/134091 "2005-01-14T14:48:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mecha](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mecha](https://forum.kirupa.com/u/mecha)
#### Post date: [January 14, 2005, 2:48pm UTC](https://forum.kirupa.com/t/javascript-in-flash-real-quick-question/134091/1 "2005-01-14T14:48:40Z")

</div>

Hey All,

I have set up a Back button in Flash using the following code.

on (release){  
getURL(“javascript:history.back(-1)”, “\_self”);  
}

This works fine, but for some reason it takes a double click in IE on Win XP. Safari on the Mac, the Back button works by just pressing once. Does anyone now of this issue or is it a one off?

I used Flash MX 2004, but exported the flash movie as Flash 6 with AS 1 for compatability reasons. The script is on a Button instance.

Thanks for any help,

mecha
