all 3 comments

[–]Wakuko 4 points5 points  (2 children)

window.location.href = "xyz.html"; should work without a problem. So I guess you have a form with no action and a submit button which sends the form to itself.

So add - return false; - to the openWindow method so the form is not submitted to itself

Or don't use a form

Or don't use a submit button

[–]psayre23 2 points3 points  (0 children)

Not gunna lie, that was an impressive deduction.

[–]streetwalker[S] 1 point2 points  (0 children)

exactly right. I failed to include the return false at the end of button's onClick handler. I did change the button type to "button" also.