I would like to create a website that when a button is clicked, the browser(and not only one tab) closes.
I thought to create a button inside a form that calls the python function
e.g [for html]:
<form action=?? method="GET">
<input type="submit" value="close browser">
</form>
e.g [for python]:
import webbrowser
def close_browser():
webbrowser.close()
return None
How could I call the close_browser() function from html/JavaScript?