JS question
JS question
- Started
- Last post
- 4 Responses
- Fariska
How do I read the url of a page via Javascript?
I have a flash in that page and i want to read the url of the page. I'm doing it via External Interface:
urlpath = ExternalInterface.call("window.l...On firefox, safari and chrome works, on IE doesn't.
Any idea why? Is the above code (window.location.href.toString) correct/compatible with IE?
- Fariska0
urlpath = ExternalInterface.call ( "window.location.href.toString" );
^
the code that got partly hidden above
- creez0
this works for me in both
var a=window.location.hrefalert(a.toString())
- acescence0
ExternalInterface.call("window.l...
- acescence0
ExternalInterface . call ( "window.location.href" ) . toString ();