Hi guys,
I cannot seem to get the following to work:
In flash (as2):
Actionscript Code:
getURL("JavaScript:changeTitle('Hello!')");
in browser:
PHP Code:
<script language="javascript">
<!--
function changeTitle(t){
document.title = t;
alert("changed!" + t)
}
-->
</script>
The result is - the page title stays the same, there are no errors - but i do get an alert that says "changed! Hello!" So the function is being fired, and the variable is being sent. It just will not change the page title.
If i call the function in javascript - so just under the function add - changeTitle("good") - it works fine, changing the title.
It must be from where the function is being called?
i have also tried window.document.title - and that is no good either.
Thanks for any help!