0

We have a minimally styled product site that we give to our customers as an iframe to embed on their websites. We need to hide a certain menu item for some of the clients we give the link to. Is there a way we can add a variable to the iframe url or something in the iframe code itself where we could pull in a separate style sheet? or maybe use JS somehow?

Thanks!

  • This might help: https://stackoverflow.com/questions/935127/how-to-access-parent-iframe-from-javascript – Anurag Srivastava Aug 11 '20 at 15:23
  • 1
    You could pass a parameter on the URL so that the code doesn't add the menu to the HTML. – Nigel Ren Aug 11 '20 at 15:23
  • You could try to use JS to [access the parent URL of the iframe](https://stackoverflow.com/questions/3420004/access-parent-url-from-iframe) and have a whitelist of URLs that will show the menu – GrumpyCrouton Aug 11 '20 at 15:42

0 Answers0