Seeking a solution to avoid closing the page when clicking on an external link using JavaScript code that runs on another page.
if(parent.window.opener) parent.window.opener.location='//www.domain.com';
I have numerous links, making it challenging to remove them or use the annoying window.onbeforeunload function.
Is there any code available to achieve this?
Thank you.