I would like to dynamically add the href element (to open the jnlp file) and then continue the caller's workflow, for example, simply by running console.log .
So far my code is:
$('<a id="tmplink" />') .attr('href', '/open_my.jnlp') .text('LINK') .appendTo('body') .get(0) .click(function(e) { console.log('aaaa');
The jnlp file opens, but the browser console, at least in Firefox, is updated / cleared, and console.log never reached.
source share