>Would you pls. tell me how to get the parent window handle of Internet Explorer?
The easiest way to manipulate IE sessions is using Shell.Application, which has a Windows collection - each entry in it is a running instance of InternetExplorer.application, and can be told to quit very easily:
oShell = CREATEOBJ('Shell.Application')
FOR Each oIEWin in oShell.Windows
oIEWin.Quit()
ENDFOR
You can invoke any method of InternetExplorer.Application or access any of the properties for it via the oIEWin object reference in the FOR EACH loop.