So I've found some stuff online but none of it uses jQuery and most of it is old and not suited for what I'm doing.
I have a main page and then a div overlay. Something like www.bacolicious.com, but with a little x bar and links :D
I had some old code that may have been working at some point, at least someone put it in.
window.open($('iframe').attr('src'), "_self");
However what this does is just always redirect to whatever I set src
to in the beginning. The scr
attribute doesn't seem to change which is the problem. I was thinking of setting my links to manipulate the src
tag but this won't help if someone browses to say, youtube and then watches a few movies and presses the button to click out.