javascript - How to make the Background behind Alert Box clickable? -


i have application make divs clickable using code :

$("html").click(function(){  alert("click");   return false; }); 

this 1 work divs. well, when alert popup, background behind alert box cannot clicked. how can turn clickable too?

ps: right click on background dont work too.

not sure how you're asking (if it's possible). maybe else can shed light on that.

but solution dialog widget jquery ui. can create pop-ups, modal or non-modal (meaning background faded out or not).

http://jqueryui.com/dialog/ have demos there, it's simple created div text , calling...

$("#the_div_id").dialog(); 

other config parameters can found api: http://api.jqueryui.com/dialog/


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -