B4J Question Close Browser Window by Name

codie01

Active Member
Licensed User
Longtime User
Hi All,

I open a tab in the browser for my oauth2 application as a landing page with:

B4X:
 ws.Eval("window.open(arguments[0],'OAUTH2');", Array As Object(TargetUrl,"myapp"))
 ws.flush

after this the Oauth is handled and works well.

My Issue is when the OAUTH2 process is finished I can not close the TAB ("OAUTH LANDING PAGE")

The code I have tried is :

B4X:
ws.Eval("window.close();",Array As Object("myapp"))

Can anyone help thanks.
 
Last edited:
Top