Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight element in parent window from iframe #496

Open
mauserzjeh opened this issue May 16, 2024 · 1 comment
Open

Highlight element in parent window from iframe #496

mauserzjeh opened this issue May 16, 2024 · 1 comment

Comments

@mauserzjeh
Copy link

Is there a way to highlight an element in a parent window from an iframe.

Scenario:

  • An embeddable widget is loaded on a webpage through javascript
  • When certain conditions are met an element is highlighted on the webpage, despite the iframe having the code which drives the tour or highlight functionality
@mauserzjeh
Copy link
Author

Actually using window.parent.document.getElementById (or any other function to retrieve the element) works. What I haven't manage to do yet is that the widget and the iframe has a very small size and it blocks the highlight to be displayed on the whole page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant