SyntaxFix
Write A Post
Hire A Developer
Questions
The browser is complaining because you're using JavaScript to close a window that wasn't opened with JavaScript, i.e. window.open('foo.html');.
window.open('foo.html');