Lightbox not to close when clicking outside the popup

i have a lightbox and i would like the only way to exit is by clicking the x button … so when a user clicks outside of the popup, the popup will still be open … is that possible … any script?

like for example - example 5 -