I'm using the Twitter Bootstrap modal as a wizard window, and would like to prevent the user from closing it when clicking outside of the modal or when pressing escape. Instead, I want it to be closed when the user presses the finish button. How could I achieve this scenario?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
-
Why does the box-shadow property not apply to a
Works too,
data-backdrop="static"
to click out anddata-keyboard="false"
to Esc in your div modal:Eg.
If using JavaScript then:
or in HTML:
You can Use Direct in bootstrap model also.
You should use backdrop static , keyboard false. and can use close button off by using jQuery or can remove from modal html. Hope this help.