How can we close the browser window?

Hi everyone,

How can we close the browser window on a mobile device (not just a tab)?

Cheers

Run this code:
window.close()

Use toolbox plugin to do so.

Also here is a joke for fun only:
Show a text in the page telling your user to press CTRL+W to enable the premium plan for free :joy: :sweat_smile:

1 Like

:grinning_face_with_smiling_eyes:
Let them do the hard work

haha… the user is installing a file to their desktop, so I am attempting to make the browser automatically close to see the file. @vini_brito would the code run as the last workflow or does it run on the page using the toolbox JS plugin?

image

Thanks for the insights

Just a side note,

If you are not opening your tab programmatically ( using window.location) you can’t close using the window.close

3 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.