I'm working with an iframe that is of a document on my domain and I have control of most of the source of. However I have button that does not have a href attached to it but rater triggers a js function to generate a url and redirect the page, I do not have control over the source of this button(even though its loaded from my domain). The page that is redirected to is outside of my domain and does not allow iframe connections, nor do I really want this to be opened inside the iframe anyways. I'm looking to detect when the button is pressed and begin listening for the page redirect to force it to open as a new tab/window.
I've tried a couple dozen of combination of things at this point, no luck yet.
Any help would be greatly appreciated, I don't work with iframes often.