You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 27, 2025. It is now read-only.
This library was built for the jQuery ecosystem and reflects best practices of its time.
It remains available for existing projects, but is not recommended for new development.
Thank you to everyone who used, starred, and contributed to jBox.
<divid="myModal">Click me to open a modal window!</div>
Confirm windows
Confirm windows are modal windows which requires the user to confirm a click action on an element.
Give an element the attribute data-confirm to attach it:
<divonclick="alert('Yay! You did it!')" data-confirm="Do you really want to do this?">Click me!</div><ahref="https://stephanwagner.me/jBox" data-confirm="Do you really want to leave this page?">Click me!</a>
Notices
A notice will open automatically and destroy itself after some time:
newjBox('Notice',{content: 'Hurray! A notice!'});
Images
To create image windows you only need following few lines:
These few examples are very basic.
The jBox library is quite powerful and offers a vast variety of options to customize appearance and behavior.
Learn more in the documentation: https://stephanwagner.me/jBox/documentation
About
jBox is a jQuery plugin that makes it easy to create customizable tooltips, modal windows, image galleries and more.