To make this simple. I have some text that when you click on it. It then redirects you to home.html.
As follows:
$('#ElementID').click(function () {
$('#ElementID').html('Redirecting...');
parent.location = 'http://' + host + '/home.html';
window.location = 'http://' + host + '/home.html';
});
The actual link is as follows:
<a href="home.html" id="ElementID">Redirect!</a>
Example:
If you right click on the above
You see that you get "Open link in new tab" / "Open link in new window" now can I catch this even and trigger the redirect(On the current window) when they use one of these options not just a straight click.
Now notice that the Jquery.click() also catches just clicking on the element. Can I use something similar to catch "Open link in new tab" / "Open link in new window"