I’m aware of the principles behind event driven programming but would nevertheless try to better understand if and how it is possible to emulate the functionality of the native alert or prompt functions in JavaScript.
Clearly the point is the blocking behavior of those native functions and how this could be emulated in JavaScript.
I’m aware of the principles behind event driven programming but would nevertheless try to
Share
you could use twitters bootstrap – modal:
twitter.github.com/bootstrap/javascript.html#modals
or jquerys ui – modal: jqueryui.com/demos/dialog/#modal-confirmation
both are non blocking
//edit:
this? https://github.com/malsup/blockui/blob/master/jquery.blockUI.js && http://jquery.malsup.com/block/#demos