How to update the height of an iframe?

Using the window.postMessage () method, we can safely communicate between the iframe and the parent window. That way, we can send a height value from the iframe to the parent window. Then, in the parent window, we can set a simple script to dynamically update the height of the iframe.
For More Information Please Refer:
You May Also Like to Read: