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

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -