When clicking a button the page refreshes showing error message for half a secound
Website link: http://bitcoinnitro.hopto.org/login.html
How can I fix that?
JavaScript Tutorial I Used To Make This Login Form: Login Form Using Html & Css & JavaScript With Validation
CodePudding user response:
When you are clicking a input button type of 'Submit' it will refresh the page at it is submitting an action - in this case login to 'login.html'.
If you wanted to open the link in a new page you would have to add attribute target="_blank"
to your tag. As in:
<input type="submit" name="" value="login" target="_blank">
The reason you may be showing an error is due to an incorrect link within <script src="link2.js"></script>
.
Use console within developer tools to identify where it may be going wrong.
CodePudding user response:
Remove action attribute from form