PDA

View Full Version : How To Close A Window ?


mano
12-05-2007, 10:50 PM
i want to close a panorama by clicking on spot

<spot id="1" static="1" salign="BC" staticX="+60" staticY="-40" url="images/retour.png" onClick="openUrl(accueilsyna.html,self)"/>

what should i write at the place of :openUrl(accu.......)">

close.window ?

zleifr
12-05-2007, 11:23 PM
I think that if you use the openUrl command like this:

onClick="openUrl(javascript:...,_self)"

you can put the javascript command to close the window, which for some reason isn't coming to mind.

mano
12-06-2007, 05:32 PM
do u mean i should write :

<spot id="1" static="1" salign="BC" staticX="+60" staticY="-40" url="images/retour.png" onClick="(javascript:close.window)"/>

zleifr
12-06-2007, 05:37 PM
I mean you should write something like this:

<spot id="1" static="1" salign="BC" staticX="+60" staticY="-40" url="images/retour.png" onClick="openURL(javascript:close.window)"/>

Also, you may need to have externalInterface set up for the javascript: command to work:
<global externalInterfaceID="myId">