I'm trying to prevent page closing when clicking on a external link used this JavaScript code. code is running in that other page.
if(parent.window.opener) parent.window.opener.location='//www.domain.com';
I have a lot of links, difficult removed or use window.onbeforeunload annoying.
Is there any code do this?
Thanks.