There is a way to simulate a click on a link after having clicked another?
I have made this script:
Update your fiddle. Updated one https://jsfiddle.net/5ad3m8La/2/
Made few changes given below:
1. Added target="blank" in link. 2. Added http:// before google's link. 3. Wrapped your code in document.ready.
and it's working now :)