faqts : Computers : Programming : Languages : JavaScript : Frames

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

86 of 105 people (82%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

How to break out of frames?

Feb 3rd, 2000 07:41
Martin Honnen,


You can check with
  if (top != window)
whether your page is in a frame and then set
  top.location.href = window.location.href
to break out:
  if (top != window)
    top.location.href = window.location.href;