webbrowser.open_new()
webbrowser.open_new() is a Python function in the Webbrowser Module category. Opens a URL in a new browser window. The syntax is webbrowser.open_new(url). Returns: Boolean. A typical example: webbrowser.open_new("https://python.csskey.com"). A close sibling is webbrowser.open(), which opens a URL in the default web browser. A close sibling is webbrowser.open_new_tab(), which opens a URL in a new browser tab. More about this category: Web browser control — open, open_new, open_new_tab. Related Webbrowser Module entries: webbrowser.open(), webbrowser.open_new_tab(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try webbrowser.open_new() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.