Page 1 of 1

Close oWnd from code inside HTML

Posted: Mon Feb 04, 2008 2:35 pm
by Patrick Mast
Hi,

How can I close oWnd from the HTML code that's provided by cMyURL?

Code: Select all

DEFINE WINDOW oWnd
oActiveX:=TActiveX():New( oWnd, "Shell.Explorer" )
oWnd:oClient:=oActiveX
oActiveX:Do( "Navigate2", cMyURL )
ACTIVATE WINDOW oWnd
Thanks

Patrick

Re: Close oWnd from code inside HTML

Posted: Mon Feb 04, 2008 4:12 pm
by Enrico Maria Giordano
Try

oActiveX:Do( "Close" )

EMG