[Solved] Buat pertunjukan pop up setiap 30 detik berulang


Check if this what you are looking for. I reduced the interval

If the modal is already popped you do not need to worry about the timer.

setInterval( () => {
	$("#myModal").modal();
}, 10000);
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>

<!-- jQuery Modal -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.css" />

<div id="myModal" class="modal">
  <p>A Modal dialog</p>
  <a href="#" rel="modal:close">Close</a>
</div>

<!-- Link to open the modal -->
<p><a href="#myModal" rel="modal:open">Open Modal Manually</a></p>

0

solved Buat pertunjukan pop up setiap 30 detik berulang