-1
I have this simple form:
<form class="form-horizontal" >
<fieldset>
<!-- Text input-->
<div class="form-group" align="center">
<label class="col-md-4 control-label" for="textinput"></label>
<div class="col-md-4">
<input id="textinput" name="textinput" type="text" placeholder="Login " class="form-control input-md">
<span class="help-block"></span>
</div>
</div>
<!-- Password input-->
<div class="form-group" align="center" >
<label class="col-md-4 control-label" for="passwordinput"></label>
<div class="col-md-4">
<input id="passwordinput" name="passwordinput" type="password" placeholder="Senha " class="form-control input-md" >
<span class="help-block"></span>
</div>
</div>
<!-- Button -->
<div class="form-group" align="center" id=addCount>
<label class="col-md-4 control-label" for="singlebutton"></label>
<div class="col-md-4">
<button id="contador" name="singlebutton" class="btn btn-primary">Enviar</button>
</div>
</div>
</fieldset>
</form>
I need three alerts to be issued after submitting this form on the fourth attempt to direct to the destination page. Is it possible? I tried via javascript, but without success.
What do you mean, "on the fourth point to the destination page"? Even if the data is wrong to direct? And what did you try to do? You can ask the question the code?
– Woss
"Submitting" and "trying to submit" are separate things.
– Sam
It is an internal project, for security awareness.
– user54154
But what exactly are you trying to do? If the user informs the wrong data appears a message, but the fourth time submit the independent form if the data are correct or not? That doesn’t seem to make sense.
– Woss
@Anderson, It’s like a Wargame. To know how many people would fall into a Phishing. And the number of times typed to validate whether there was a typo or not.
– user54154