[Solved] multiple commands in if statement in javascript [closed]
The problem here isn’t that multiple things aren’t happening. It’s that you’re changing location after your alert, which kills the rest of the execution, so you never get to “more stuff” cause you’ve moved on to a different page. Move window.location to either be the last thing in your method, or call it from a … Read more