I am looking for a way to determine the height of an IFRAME based on its content. The code structure is like this: When click on a button, a new modal dialogue box will be opened which contains a DIV. The IFRAME will be loaded into this DIV. So my question is how to set the IFRAME height and as well as the outer containing DIV height based on the IFRAME content?
I tried setting height for Iframe onload of it but it always default to 150px, I don't know why.