JK Patel
JK Patel

Reputation: 858

Dynamically changing the browser title in ActionScript

i have set a title of Browser via Application.pageTitle property. is there any way to change the title of web Browser dynamically or as3?

Upvotes: 1

Views: 259

Answers (1)

Barış Uşaklı
Barış Uşaklı

Reputation: 13532

You can call a Javascript function from AS3 to change the title

//AS3
ExternalInterface.call("changeTitle","title you want");

//javascript
function changeTitle(newTitle){
    document.title = newTitle;
}

Upvotes: 1

Related Questions