Iframe height auto6/12/2023 ![]() How to get height of iframe content when loaded?Īnd in the parent document, add an onload event to the iFrame tag that will look at the location of the iframe and extract the value you need. The microservice responsible for uploading file was on different domain and the main app is on another domain. contents() ) if the domain of the webpage which contains the iframe is same as the domain of the web-page opened in iframe. You can read the contents in an iframe easily via jQuery ( $(iframe). How do I read Cross domain iframe content? It also has options for the content page to request the containing iFrame is a certain size and can also close the iFrame when your done with it. It uses the PostMessage and MutationObserver APIs, with fall backs for IE8-10. Use iFrame-resizer This is a simple library for keeping iFrames sized to their content. ![]() Is there a cross domain iframe height auto resizer that works?
0 Comments
Leave a Reply. |