Skip to content
Advertisement

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 party site here, while site2.com is

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 triggered. What am I doing wrong?

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. I removed src or just

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 this package AND finds out iframes onload event mysteriously fires twice

Hide Twitch iFrame If Channel Not Live

We have a site embedding Twitch streams. They have events for a channel going offline. So when a stream is live, then it goes offline, I can essentially then hide the iframe. However, I’m wanting to have it so if when the page is loaded, and the channel is already offline, the iframe doesn’t show. Any ideas and thoughts much

Advertisement