changing window title from parent window

L

Luis

Hello

I'm opening a window with a SWF inside (no HTML, just the SWF) but in the
title bar appears something like

http://www.server.com/myDir/myWeb/Flash/myFlash.swf

i'd like to write something like "Wow!! look thos flash!!!".

Could I do that from the function who launch it??? with something like this?

myWin.title = 'Hello world!!!';

Sorry about my English!!! O:)

thank you in advance!! bye!!

Luis
 
R

Randy Webb

Luis said:
Hello

I'm opening a window with a SWF inside (no HTML, just the SWF) but in the
title bar appears something like

http://www.server.com/myDir/myWeb/Flash/myFlash.swf

Yep, thats because you are attempting to open the .swf file itself.
i'd like to write something like "Wow!! look thos flash!!!".

Then use an html page and the title attribute.
Could I do that from the function who launch it??? with something like this?

myWin.title = 'Hello world!!!';

That depends on whether the .swf file allows the title to be set. Highly
doubtful, see above.
 
L

Luis

Randy Webb said:
Yep, thats because you are attempting to open the .swf file itself.

Yes, I know. I was just explaining the problem :)
Then use an html page and the title attribute.

this?

That depends on whether the .swf file allows the title to be set. Highly
doubtful, see above.

I don't think the SWF control the title bar.....

thank you anyway!!!

bye
 
L

Lee

Luis said:
Yes, I know. I was just explaining the problem :)


I don't think the SWF control the title bar.....

That's right. What he's saying is that, since you're opening a SWF
file, instead of an HTML file, there is no title attribute. If you
want to set the title, you can open an HTML file that contains the
SWF file, instead. One way would be:

function openSWF(URL,title) {
globalHTML = "<html><head><title>"
+title+"</title></head><body>"
+"<iframe width='100%' height='100%' "
+"frameborder='0' src='"+URL
+"'></iframe></body></html>";
myWin=window.open("javascript:eek:pener.globalHTML");
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top