troubleshooting Question

Modal Window Onload

Avatar of movieprodw
movieprodw asked on
JavaScriptjQuery
2 Comments1 Solution426 ViewsLast Modified:
Hello,

I just want to have a modal window show an alert on page load.

http://getbootstrap.com/javascript/#modals

Can you please tell me how to trigger this on page load.

<!-- Small modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Free Shipping</button>

<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      Did you know if you purchase 4 or more, you qualify for free shipping!
    </div>
  </div>
</div>
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros