Set page name from SWF

Is it possible to set the page title when it is just loaded by SWF?

+3
source share
5 answers

Here's how I do it:

ExternalInterface.call("document.title = 'Hello World'");

Or more general:

function setPageTitle( newTitle : String ) : void {
  var jsCode : String = "function( title ) { document.title = title; }";

  ExternalInterface.call(jsCode, newTitle);
}
+5
source

Of course. This should fix you:

getURL('javascript:var x = (document.getElementsByTagName("head")[0].getElementsByTagName("title")[0].firstChild.nodeValue = "This is a test!");');

Just replace "This is a test!" with your new name.

+2
source

SWFAddress, setTitle. , beng, URL .

EDIT: , SWF , HTML.

0

. Madw hell aspFlash swfObject....

, ...

IFrame Iframe SWF .

, 2 - , . - Iframe, , SWF , scr = " "

0

Source: https://habr.com/ru/post/1697079/


All Articles