SetBrowserWnd

Associates an instance of the BZHAO with a browser window that has a BlueZone display session embedded. When using the Sx Object Tag parameter with embedded sessions, the SetBrowserWnd() method must be used after each CreateObject() call when running multiple browser instances and specifying ''!'' with Connect() and zero(0) with ConnectToHost(), addConnectionCallback(), etc. in the web page scripts.

Parameters
window.top
Remarks
In the following example, the BZHAO uses the window.top object to find the BlueZone session that is embedded in the same browser window that is running the script. Note that window.top is the only valid parameter for this method.
Example
Set bzhao = CreateObject( "BZWhll.WhllObj" )
bzhao.SetBrowserWnd window.top
bzhao.ConnectToHost 2, 0
bzhao.Connect "!"
bzhao.ReadScreen Buf, 1920, 1, 1
bzhao.Disconnect
bzhao.DisconnectFromHost 2, 0