Using either of the examples below automatically breaks a browser out of any frame that links to your page. Keep in mind that some web services, such as those that translate your web page into another language, may no longer work because they need a frame.

Breaking out of frame using JavaScript

Place the below script in thesection of your HTML.

Some services such as website translation and Google images may use frames to display your content. If you break out of the frames these services may also break.

Alternatively, if you want to create a link for users to break out of a frame on your website you can add the example below.

Users who have JavaScript disabled are not taken out of a frame using this method.

Break out of frame

  • See our frame definition for further information and related links.
  • HTML and web design help and support.