Return function when jquery event triggers -


how can force function wait event trigger? want confirmation box, user can not until he/she answers question.

something this:

function ask() {     if ($('a').click(function())) {          return true;     }     return false; } 

ps: know how use "confirm()" in js. i'm writing new sample of it!

work 2 functions:

function ask() {     if ($('a').click(function())) {          execute();     } }  function execute(){  } 

Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -