While browsing through iframe window I want to prevent any popups. Also when i click on link that wants to open new tab or window I want to get the url and put it into iframe.src. I found that there is a window.open method that opens the new tabs or windows but how to stop it and take the url?
Share
You can override window.open with your own function:
Just make sure this function is defined before anything that uses window.open