It's impossible. When the user refreshes the page, the modality disappears.
The only option would be to reopen the modal page refresh. To do this, you will need to save some variable in a cookie or localStorage to inform you that they have not closed the modal yet.
- :
$(function() {
if(cookieOrLocalStorageVariable) {
$('#myModal').modal(options);
}
});
cookieOrLocalStorageVariable .