Workaround Of Chrome 37+ Modal Dialog Returnvalue
I have a parent caller page and a modal page, when the modal page is closed, the caller page gets a returnValue from the popup modal page. Even older version Chrome's showModalDial
Solution 1:
You can use the Jquery Modal Dialog Framework
JQuery Modal Dialog Example
$( ".selector" ).dialog({
close: function( event, ui ) {
alert('dialog closed');
return;
}
});
Or the Fancybox Framework
Fancybox Example
Baca Juga
- Javascript / Jquery - How To Create A Proper Modal Page Overlay
- Reactjs - I Am Trying To Handle And Event In A Popup, But The Popup Is Not Being Rendered As It Should After An Event Execution
- How To Open A Bootstrap 5 Modal Which Is In Child From A Button Click Which Is In Parent , Without Installing Ng Bootstrap In Angular
$(".fancybox").fancybox({
afterClose : function() {
alert('dialog closed');
return;
}
});
Both frameworks provide callback handlers so that you can store or pass values to other functions...
Post a Comment for "Workaround Of Chrome 37+ Modal Dialog Returnvalue"