Dynamically create the OLE object of your browser
Integer resultoleobject objExplorer, ieDocobjExplorer = CREATE oleobjectresult = objExplorer.ConnectToNewObject ( "InternetExplorer.Application") IF result = 0 THEN objExplorer.Navigate ( "about: blank") ieDoc = objExplorer.document objExplorer.ToolBar = 0 objExplorer.StatusBar = 0 objExplorer .Width = 300 ObjExplorer.height = 150 Objexplorer.Left = 0 Objexplorer.top = 0 Objexplorer.visible = 1END IF
// This can perform JS
oleobject WshShellWshShell = create oleobject WshShell.connecttonewobject ( "WScript.Shell") integer li_Returnli_Return = WshShell.Run ( "cscript E: /validate.js", 1, true) messagebox ( "", li_return) WshShell.DisconnectObject () destroy WshShell
OLE embedding the browser, how to call the function in the web page