bank = confirm("Press cancel to go to the bank before you upgrade!");if(bank==true){window.location = "http://www.robowarsgame.com/beta199b/game/bios.php";}else{window.location = "http://www.robowarsgame.com/beta199b/game/bank.php";}
The if/else works fine, it's the window.location that has trouble. It's inserted into the code by GreaseMonkey, but as I said, the if/else works fine, I tested them with alert(). So I'm thinking I did something wrong with the window.location?

New Topic/Question
Reply

MultiQuote








|