How to open modal on page load ? #1237
Replies: 3 comments 6 replies
-
As far as i am aware you cannot properly open bootstrap modals by setting the style. You will have to execute some javascript on page load to programatically open the modal. See the bootstrap documentation for more information. |
Beta Was this translation helpful? Give feedback.
-
let myModal = new bootstrap.Modal(document.getElementById('test-modal'), {}); |
Beta Was this translation helpful? Give feedback.
-
I get it working, but I need to import also BootstrapJS, till the now I don't need bootstrap native JS at all, tabler.min.js was enought to use. |
Beta Was this translation helpful? Give feedback.
-
I would like to open modal on page load. I tried to change
style
fromto
but then I can't close the modal.
Is there some solution ?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions