Redirect Issue With Code

wSenrszy

New Member
I'm having some problems with the code below, specifically \[code\]window.location="http://www.google.com"\[/code\] I can't get it to redirect when I enter the correct password.\[code\] <div class="buttons"> <input class="orangebutton" type="submit" value="http://stackoverflow.com/questions/12786153/Continue" onclick="if (document.getElementById('password').value =http://stackoverflow.com/questions/12786153/='hi') window.location="http://www.google.com" else alert('Wrong Password!');" /> </div>\[/code\]UPDATE:This is what I have now, the redirect is still not working.\[code\] <input class="orangebutton" type="submit" value="http://stackoverflow.com/questions/12786153/Continue" onclick="if (document.getElementById('password').value =http://stackoverflow.com/questions/12786153/='hello') window.location='http://www.google.com'; else alert('Wrong Password!');" />\[/code\]
 
Back
Top