Hi,

I would like to display an element (div) of another web page, hosted on a owned sub domain…

I was planning to use iframe, but it seem that iframe only allow to grab the entire page… any ideas ?

Thanks.

  • ExperimentalGuy@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Instead of using JavaScript to grab it from that other page, it might be worth it to make that snippet of html its own file and then call it, both in the original page and the page you’re making. It sounds like this is feasible too if you have ownership over that other subdomain. I know they used to use this technique a lot back in the old days of just html, so it’d probs work for you.