new window in separate thread - flask website - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: new window in separate thread - flask website (/thread-34922.html) |
new window in separate thread - flask website - Notabene - Sep-15-2021 Hello, I need to launch new window/tab on my flask website, which will be in separate thread and do its own job, with the ability to close/stop that thread/browser tab from the main page/thread. Could someone give me an example how to achieve this? I am running flask website using apache's wsgi. Thanks RE: new window in separate thread - flask website - ndc85430 - Sep-19-2021 I don't understand what you're asking. What makes you think you have any control over how the browser uses threads? In any case, if you just want to open a new window, obviously that's done client-side. As such, you'll need to find the appropriate JavaScript (or whatever you're writing on the frontend) function to do it. RE: new window in separate thread - flask website - SamHobbs - Sep-19-2021 (Sep-15-2021, 06:41 AM)Notabene Wrote: Hello, Do you mean Flask? It executes in a server, correct? Browser windows execute in the client, right? Usually a different computer; the country might even be different. RE: new window in separate thread - flask website - jamesaarr - Sep-20-2021 If you want a link to open in a new page then you need to change the HTML in your Flask function. <a href = "">Normal Link </a> <a href = "" target="_blank">This will open the link on a new tab</a> |