I have a javascript which suppose to mark a notification as read when a user clicks on it.
The javascript is triggered in an <a>
tag, which after the script returns true, redirects the user to another page with target="_blank"
;
But if the user uses his middle mouse button, or uses his right click -> open in a new tab, It will not trigger the event.
I know I can just make a "link" and not allow open in a new tab options, but I rather not.