logoalt Hacker News

jefftk05/03/20251 replyview on HN

You could do this with js in the child document, if its important to keep js out of the parent.


Replies

silvestrov05/04/2025

no, not if it is cross site URL.

Then you need a postMessage to send body size to parent frame which then needs to listen for messages and resize the iframe element.

show 1 reply