How can I close the browser window from a button?
Sorry, I'm not very familiar with javascript or how to call window.close() from a webcore application.
As of 2017, there is no way to close a web browser tab or windowusing JavaScript. Modern security standards do not permit this behavior.
Bruno Fierens2019-08-20 09:28:57
Thanks Bruno,
Just so I understand, how would I have called a javascript function like window.close() from a button if it worked still?
You can call
window.close;
as this is covered in web.pas
For things not covered in web.pas, you can use
asm
// call any JS here
end;