user1916383
user1916383

Reputation: 9

How to create an auto popup outside an iframe

I have a chat button my website that should create an auto invitation that scrolls across the screen after a visitor is on there for 60 seconds. My problem is that the auto invitation is being embedded in the chat iframe and is not shown across the screen. The website company can't add my code to the back end so I'm stuck with the iframe. How can I change the code so that the auto invitation scrolls across the screen and not in the iframe?

Upvotes: 0

Views: 391

Answers (1)

Jon Egerton
Jon Egerton

Reputation: 41569

Have a look at window.top for the top most, or window.parent for the parent of the current iframe.

These allow you to interact with those "windows" outside of the current iframe "window".

Upvotes: 1

Related Questions