interact with other elements on the page. Thanks for contributing an answer to Stack Overflow! In this way whichever if the modal ("hide") in pleaseWaitHide () has no effect because .modal ("show") isn't ready, the 2nd modal ("hide") in the ready call . Works as a charm. It seems that Javascript world is evolving faster and faster. but how can we do that? Answers related to "open modal on page load only once" how to close bootstrap modal after save; bootstrap modal show on page load without jquery; add event listener on modal close; call function on modal open; open bootstrap modal from another modal; refresh modal on button click jquery; show modal after 5 seconds delay on page load For that reason Safari doesnt appear in my research ), youll find that this method was removed in Chrome 43, and Firefox 56, The first step to look for different alternatives is to know what you need. Edit: I think I should have posted this in Javascript. 1 I have a page that shows a modal dialog onload. decline) // On click of specified class (e.g. Thank you for the feedback. Next we'll specify the dialog by setting a .modal-dialog element as the direct child of the .modal. Only when I refresh the page it stops. You could use sessionStorage - code example below: , if (sessionStorage.getItem('modal') !== 'true') {, $('body').append('