I am working on a project that behaves very strange when the user open pages in a new tab or in a new window, causing the app to crash.
I need some javascript that
For me, the other answers are no sensible option, since some hrefs in my document are procedurally changed. This block of code works though:
href
document.documentElement.addEventListener('click', function (event) { if(event.ctrlKey){event.preventDefault()} });