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

[ad_1]

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"" />

[ad_2]

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