Tuesday, February 26, 2008

Exit IE window on application exit

To exit the IE/Firefox window when the application is closed we need to create an HTML file (i.e. exit.htm) with the following code:


{HTML}
{BODY onload="window.opener=null;window.close();"}
{/HTML}

(swith the {} to <>)


Now - in KEY-EXIT we need to call this file:

WEB.SHOW_DOCUMENT('http://myServer/virtualDir/exit.htm', '_SELF');