posted 14 years ago
Hello all!
I am looking to know how to handle a callback of an event, before it performs the default href function.
<code>
<a href = '<?php $url ?>' onclick = myFunction(); return true;>Click Here
</code>
I want the onclick event to finish completing and then perform the default href function, which is denoted by the "return true". The javascript "myFunction()" opens a window in a pop-up and it has a submit button in it. I would like to wait till this page loads in the pop-up window and only after the user clicks on the close button, the default href function needs to be carried out.
I cannot figure out on how to get the callback from this event.
Any help is appreciated!
Thanks !