Open Html File In Same Tab Using Python Script
I am trying to open a HTML page using python script. With the following script the file opens in a new browser tab. How should I make it open in the same tab? import webbrowser imp
Solution 1:
I am afraid you need to do it through Javascript:
RefreshTab = '<script language="JavaScript" type="text/JavaScript">window.location = \'%s\';</script>'
print RefreshTab % 'yourscript.py'
Post a Comment for "Open Html File In Same Tab Using Python Script"