getURL coding

Hi,

i’ve found this code *getURL(‘javascript:document.getElementById(“object_id”).setVariable(“url_string”,window.location.href); void (0);’); *on other site to get the url of the current .html file. Placed inside flash but nothing happen. Was wondering if i need to put something else in the .html coding?

Thanks. :glasses:

you do know there is a space in “href” in your code right?

Yup…but the coding still doesn’t work, even without that space. :jail:

I can’t remember what it is, but there should be a line of Javascript code that you have to place in your HTML file. Then it should work.