New window instead of breaking of iframe?

Discussion in 'General Programming Chat' started by knohr, Mar 18, 2010.

  1. knohr

    knohr Newbie

    Jan 12, 2010
    Likes Received:
    Best i can tell, there are a few different methods of breaking out of an iframe.

    Best example, something like:
    a href="_top".

    I have code that detects when it is getting broken, what i would like the code to do (window.onbeforeunload in javascript) is to load the target in a new window (outside of the iframe) instead.

    Any ideas?