This example shows how to show a modal after 5 seconds delay on page load in Bootstrap 5.
setTimeout(function() {
$('#myModal').modal();
}, 5000);
Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.