Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Close a browser tab?

If you have a question or need help, this is the place to be.
Post Reply
rdgerken
Experienced User
Posts: 89
Joined: Fri Sep 21, 2012 7:41 pm

Close a browser tab?

Post by rdgerken »

If I use the following code to open a browser tab:

Code: Select all

from webbrowser import open as openurl
openurl("http://192.168.160.1:1234", new = 0)
Does anyone know if there is a way that I can retain a handle to this tab, and later issue an action to close it? Maybe theres a better way to open it as well... I just found this snippet somewhere on the boards here.

Thanks
Post Reply