If a user is on your website and opens another link (also to your website) in a new tab, is it possible to differentiate this from the user just clicking on the link normall
You can sort of do it like this:
if (history.length == 1) { // Um, needs to be 0 for IE, 1 for Firefox // This is a new window or a new tab. }
There may be other ways for history.length to be 1, but I don't know what they might be.
history.length
1