[Solved] What’s the difference between following two scripts written in JavaScript? [closed]


Instead of submit, try using input type button…

<input type="button" class="btn btn-primary" name="submit" id="submit" value="Back" onclick="javascript:window.location="https://stackoverflow.com/questions/23087236/login.php"" />

solved What’s the difference between following two scripts written in JavaScript? [closed]