New window instead of breaking of iframe?

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

  1. knohr

    knohr Newbie

    Joined:
    Jan 12, 2010
    Messages:
    22
    Likes Received:
    5
    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?