js code:
var Window = MsgPlus.CreateWnd("Windows.xml", "WndBrowser", 0);
var BrowserObj = Window.Browser_GetInterface("Browser");
BrowserObj.GoHome();
function BrowserObj::BeforeNavigate()
{
// do loading stuff
}
code:
Message in Script Debug
Script is starting
Error: 'BrowserObj' is undefined (code: -2146823279)
File: Browser.js. Line: 4.
Script has failed to start
It seems that none of the events work. Any ideas?
Edit: tried with variables, still didn't work.
js code:
function BrowserObj::BeforeNavigate(pDisp, url, Flags, TargetFrameName, PostData, Headers, Cancel)