PDA

View Full Version : Grrr... Closing a browser window using FScommand



gopaldass
October 23rd, 2004, 11:59 AM
Hello,

Could someone please tell me, how does one close a browser window using the FSCommand. The normal 'quit' option works only closes a projector file. But i need to close a browser window.

I hear there is some technical javascript wizadry which allows one to do this. Please help....

Thank Ye,
Gopaldass

DieterStruik
October 23rd, 2004, 12:06 PM
Instead of running a FScommand do this:

var jsURL = "javascript: top.window.close();";
getURL( jsURL );


good luck,

Dieter Struik

gopaldass
October 23rd, 2004, 03:51 PM
Aaah! So it does!

Thank ye! Was a bit confused with them browser flash communcation bit. Will take sometime...


Instead of running a FScommand do this:

var jsURL = "javascript: top.window.close();";
getURL( jsURL );


good luck,

Dieter Struik

DieterStruik
October 26th, 2004, 08:36 AM
I'm glad I could help!

greets,

Dieter Struik