Alright so I am trying to open up a new tab from the jquery but I have few problems
case "success_password": { alert("Welcome back. We hope that you will enjoy your stay!"); window.open('localhost/game/map.php', '_blank'); break; }
Is there a way to do this without writing down the whole path? So I could just use for example path + "map.php";
I just replaced window.open('localhost/game/map.php', '_blank');
with window.location.replace("map.php");
and it worked like a charm!