Creating and clicking on a Link, programmatically

this may be a security implementation from the browser - preventing malicious websites from forcing tabs to open - but maybe something else.

You could try taking the approach used here:

1 Like