I
I
id56346gera2018-05-10 20:08:48
JavaScript
id56346gera, 2018-05-10 20:08:48

Opening bootstrap modal on first page load?

Good evening. There was a problem, the essence is that there is a bootstrap modal window ID, it has a reminder . It is necessary to make it so that when the page is first turned on, the modal is called, and then if you just refresh the page, then the modal should not be called, but should be called if I reopen the link of this page.

Here is a script that calls the modal every time the page is reloaded.
Thanks for the help.

<script>
$(document).ready(function(){
    $('#reminder').modal('show');

});
</script>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2018-05-10
@iiiBird

use localstorage https://tproger.ru/articles/localstorage/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question