from Hacker News

Ask HN: Is it possible to embed iframe partially?

by Igor_Wiwi on 8/2/24, 11:29 AM with 3 comments

I have a react application and a blog post on the same page, and I want to embed only the app
  • by efortis on 8/2/24, 11:48 AM

    In the page with the blog+app, conditionally render the blog when it's not on an iframe.

      if (!window.frameElement)
        renderBlog()
  • by meiraleal on 8/2/24, 12:10 PM

    HN is not stackoverflow
  • by pestatije on 8/2/24, 1:31 PM

    {display: none} the blog