 <p>From the <a href="https://docs.python.org/2/library/webbrowser.html#webbrowser.open" rel="nofollow">doc</a>.</p> <blockquote> <p>The webbrowser module provides a high-level interface to allow displaying Web-based documents to users. Under most circumstances, simply calling the open() function from this module will do the right thing.</p> </blockquote> <p>You have to import the module and use <code>open()</code> function.</p> <p><strong>To open in new tab:</strong></p> <pre><code>import webbrowser webbrowser.open('nabinkhadka.com.np', new = 2) </code></pre> <p><strong>Also from the doc.</strong></p> <blockquote> <p>If new is 0, the url is opened in the same browser window if possible. If new is 1, a new browser window is opened if possible. If new is 2, a new browser page (“tab”) is opened if possible</p> </blockquote> <p>So according to the value of new, you can either open page in same browser window or in new tab etc.</p> <p>Also you can specify as which browser (chrome, firebox, etc.) to open. Use <strong>get()</strong> function for this.</p>