# Calling Javascript function from flash IE help

**URL:** <https://forum.kirupa.com/t/calling-javascript-function-from-flash-ie-help/253166>\
**Category:** flash\
**Created:** [February 27, 2008, 8:30pm UTC](https://forum.kirupa.com/t/calling-javascript-function-from-flash-ie-help/253166 "2008-02-27T20:30:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevisazombie](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kevisazombie/32/3903_2.png) [@kevisazombie](https://forum.kirupa.com/u/kevisazombie)\
**Post date:** [February 27, 2008, 8:30pm UTC](https://forum.kirupa.com/t/calling-javascript-function-from-flash-ie-help/253166/1 "2008-02-27T20:30:31Z")

</div>

Hey everyone,

I have a javascript function:

```auto
function startLytebox(thumb, caption, image) {

```

I want to call it from flash. I have been calling it like this:

```auto
getURL("javascript:startLytebox(\""+lightBoxImg+"\", \"blank\", \""+lightBoxImg+"\");");

```

That works fine in FF, Safari, and IE7. but in IE6 all the variables for the function parameters get dropped. Is there a better way to call Javascript functions from flash maybe FScommand or something? Or some Hack for IE6 thanks in advance.
