Skip to content

Tag: iframe

Let 3rd party change styles of an iframe of my site

Let’s say I am hosting site2.com and have site2.com/frame.html file that is simple as this: Now say 3rd party website called site1.com wants to embed this content via iframe element like this: So I get this result in the Chrome browser when I open site1.com (ie. site1.com is playing the role of the 3rd …

Check if iframe content has been loaded already

I am trying to check if the iframe src has been already added the first time so that it does not load it again in the second time. The iframe is activated with the function given below, I am using jQuery to check this. Unfortunately the console.log(“loaded”); gets called every time the function is…

How can prevent Stored XSS by iframe?

I use Extjs and JS to build a dialog where can display my html data from DB, that data is wrapped with iframe like this: I tried to add sandbox to iframe, but it doesn’t work, the XSS alert still show. Then I tried to change to <iframe src=’#’… sandbox>, but XSS alert still show.…

Iframe load event fires twice

The function bound to (@load=”myFunction”) fires once when the iframe is created and once when it’s actually loaded. Why does it fire when the iframe is created, and how to avoid it? Answer As @tao suggested something else was interefering, namely Nuxt Lazy Load package. So if anyone uses th…