Looks like you missed something, replace with the below,
Instead of using three lines you can directly use recommended method,
var optionStr = window.open("yourHTMLPage.html", "_blank", "location=yes");
Also, your Console Error message not belongs to the given code, locate the 'NONE' somewhere else. Hope this helps.