... code snippet: h['oDlg']:bResized := { || oWebView:SetSize(600, 800) } Inside the function `fromjavascript(hPost)`, if the condition elseif hTemp['url'] == 'cancelform'` is met, the following actions are performed: logline("cancelform", ValToChar(hTemp)) oWebView:Terminate() oWebView:Destroy() ...