I have a script that submits a bid and currently have it working when pressing the submit button or pressing the enter key. Everything works perfectly while pressing the button, but it works halfway when pressing the enter key.
When I press the enter key, the proper information gets validated, the alert window pops up as normal, information passes, but it won't redirect using:
document.location = url;
When using the enter key, everything in the script works (validation and everything), it just won't redirect. It's strange.
Please let me know why this isn't working.
onkeydown="if (event.keyCode == 13) document.getElementById('bidsubmit').click();"