Tuesday, 27 August 2013

Redirecting using window.location.replace not working

Redirecting using window.location.replace not working

for whatever reason my code won't redirect to another file after I press
submit.
$('form').submit(function () {
window.location.replace('test.html'); });
I have defined everything in an html file. Any ideas?
Thanks, busterroni

No comments:

Post a Comment