Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8993543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:12:51+00:00 2026-06-15T23:12:51+00:00

1. What is the issue? The sandbox attribute added for iFrame elements in HTML5

  • 0

1. What is the issue?

The sandbox attribute added for iFrame elements in HTML5 spec renders any frame breaking/busting/killing method null in modern browsers (tested with current version of Chrome & Safari) if the flag allow-top-navigation is not set, even if the flags allow-forms and allow-scripts are present.

2. What I have tried?

  • Any JavaScript method out there, such as if(top != self)
    top.location.replace(location);

  • Triggering a submit event on a form
    with the target="_top" attribute

  • Triggering a click event on an
    anchor element with the target="_top" attribute. In fact, anchor elements with the target="_top" attribute are rendered useless. So, a nice message to advice users to take action won’t work either (as shown in this Flickr iFrame example).

3. What I want to achieve?

I want a way to break out of frames on modern browsers, which have implemented the sandbox attribute for iFrames with the flags allow-forms and allow-scripts present?

Seems like they have just given the missing pieces of a puzzle to all black hats with this attribute.

4. What I am not looking for?

I am looking for a solution, which will break out of frames. Not for a solution, which won’t display the site inside frames (such as X-Frame-Options response header) or using CSS to hide the body and such.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:12:52+00:00Added an answer on June 15, 2026 at 11:12 pm

    I am afraid that you won’t find a solution, as the point of the sandbox is that you can’t break out of it.

    If there was a hack to break out, it would be classified as a security issue by the vendor and patched quickly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Issue for text elements that are adjacent to icon elements, the glyph height is
I'm busting my brains over this issue (it should be straightforward), but can't seem
issue facing while loading the messages in to mq channel, recieving an error like
Issue: RODBC (falsely) returning zero rows Situation: I'm using RODBC to connect to a
Issue Using the following just simply doesn't work properly in -webkit- and -moz- browsers:
Issue Garbage gets erroneously entered into date fields and screws up calculations. Goal Using
// issue with the following not returning info or just stalling... but no errors
Issue - We have a spreadsheet with thousands of addresses but no counties. Goal
Issue is SOLVED: Problem is that it is a pre-compiled web page project and
Issue In the below code , say if i want to change the color

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.