0
How to make someone unable to open the webpage if he doesn't fill the forms?
When I click on submit button without filling the form, the webpage opens that i have set in action attribute. But I don't want anyone to do so. What should I do plz help.
2 ответов
+ 4
Example
<form autocomplete="off">
<label for="e-mail">Your e-mail address: </label>
<input name="Email" type="text" required />
<input type="submit" value="Submit"/>
</form>
+ 4
Use the required attribute like this
https://www.sololearn.com/learn/HTML/2216/