# IE Not returning values from JS inside Flash

**URL:** https://forum.kirupa.com/t/ie-not-returning-values-from-js-inside-flash/222379
**Category:** flash
**Created:** [April 12, 2007, 9:00pm UTC](https://forum.kirupa.com/t/ie-not-returning-values-from-js-inside-flash/222379 "2007-04-12T21:00:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![matrix211v1](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@matrix211v1](https://forum.kirupa.com/u/matrix211v1)
#### Post date: [April 12, 2007, 9:00pm UTC](https://forum.kirupa.com/t/ie-not-returning-values-from-js-inside-flash/222379/1 "2007-04-12T21:00:19Z")

</div>

Hello All:

I am running this code: (see attached code)

It is returning the information fine in FireFox but for IE, I always get “undefined” or “null” I have tried all the properties from the [[COLOR=#800080]http://www.w3schools.com/htmldom/dom\_obj\_location.asp[/COLOR] as well as [URL=“http://www.w3schools.com/htmldom/dom\_obj\_document.asp”][COLOR=#800080]http://www.w3schools.com/htmldom/dom\_obj\_document.asp[/COLOR]](http://www.w3schools.com/htmldom/dom_obj_location.asp) under the heading “Document Object Properties” with no avail. Anyone have this issue or have a solution?

Thanks!

function determinePageURL(){ myTrace("\*\*\* determinePageURL"); import flash.external.\*; var jsFunction:String = “function getLoc(){return window.location.href;}”; var rtnVal:String = ExternalInterface.call(jsFunction, null).toString(); myTrace("\>\>\> jsFunction = " + jsFunction); myTrace("\>\>\> rtnVal = " + rtnVal); return rtnVal;} // end function determinePageURLfunction myTrace(str:String){ txtOutput.text += str + "  
"; } // end function myTrace
