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

  • SEARCH
  • Home
  • 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 8864449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:14:38+00:00 2026-06-14T16:14:38+00:00

I am writing a widget which gets embedded on other pages (on other domains)

  • 0

I am writing a widget which gets embedded on other pages (on other domains) via an iframe. A click anywhere on the widget/iframe should bring up a dialog. The dialog does not fit in the dimensions of the iframe.

  • I cannot trigger the dialog from inside the widget/iframe since it will get clipped by the iframe dimensions.

  • A user of the widget also includes a JS from my site. But I cannot listen to onclick events on the iframe (on the host page) since they aren’t any onclick events on an iframe.

What’s a good, secure way of resolving this which will reliably work on all modern browsers?

  • 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-14T16:14:39+00:00Added an answer on June 14, 2026 at 4:14 pm

    Have a look at these PostMessage plugins 1 / 2 which allow you to communicate i.e. pass messages between an iFrame on another domain and the parent page.

    This means you can listen for the click on the iFrame, then send a message to the parent. When the parent receives that message, it can then show a dialog

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

Sidebar

Related Questions

I'm writing a JavaScript widget, which is intended for use on other website and
I'm writing a wordpress widget plugin. It should output some html code which should
I'm writing a bookmarklet which needs to work in the context of pages whose
I'm writing an application on qooxdoo. I have a class, which should return table
I am writing an app widget which I intend to populate with a list
I'm writing a popup widget that inherits from ui.dialog and I'm wondering if there
hi I am writing a javascript widget which handles keyboard events. The issue in
I am writing a widget template, which will be included in a page where
I'm writing a web application that's supposed to be embedded in other people's websites
My Goal: I am writing a widget for a job which will populate a

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.