I was researching a way to limit the appearance of a modal on my site, for example when clicking on a link it asks for the registration of the email before going to the ancora, but I do not want this to always appear, time per session! I found something about session storage, can I do this for it? I do not understand much of javascript, sorry for my ignorance!
Thank you guys.
Code of my modal.
<!-- Modal -->
<div class="modal fade" id="myModal3" role="dialog">
<div class="modal-dialog modal-sm">
<div class="modal fade" id="myModal3" role="dialog">
<div class="modal-dialog modal-sm">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Meu site.</h4>
</div>
<div class="modal-body">
<p>Deseja receber mais informações por e-mail?</p>
<form name="email" action="enviaEmail.php" method="POST" enctype="multipart/form-data">
<div class="form-group">
<input type="email" class="form-control" id="email" name="enterEmail" placeholder="Enter email" required>
</div>
<!--Oculto para mandar o produto clicado-->
<input type="hidden" class="form-control" name="cliqueSistema" id="cliqueSistema">
<button type="submit" class="btn btn-default" onclick="Alerta1()">Enviar</button>
</form>
</div>
<div class="modal-footer">
</div>
</div>
</div>