从SWF中设置页面标题 [英] Setting Page Title from a SWF
本文介绍了从SWF中设置页面标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我可以如何设置一个页面的标题,当它只是一个加载的SWF?
Is it possible to set the title of a page when it's simply a loaded SWF?
推荐答案
这样做:
ExternalInterface.call("document.title = 'Hello World'");
或者更一般:
Or more generalized:
function setPageTitle( newTitle : String ) : void {
var jsCode : String = "function( title ) { document.title = title; }";
ExternalInterface.call(jsCode, newTitle);
}
这篇关于从SWF中设置页面标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文