Can we get a reference to a tab which was opened by setting target
attribute of anchor element to _blank
.
I basically create a new hidden link and append it to a DOM and then I programmatically simulate click event on that element, is there a way to get a reference to a newly opened tab like we can with window.open
by doing:
var newTab = window.open('http://www.google.com/');
EDIT: Before marking question as duplicate note that I'm unable to use window.open
at all, hence this question.