Hello xddg/Nina,
I can appreciate your advice here, and normally I try to stay away from such tricks in DNN.
However, the iFrame module in DNN doesn't provide any method of applying CSS to the iFrame - it provides only the width/height attributes (and these are defined as HTML tag attributes instead of CSS in the resultant Code which is good for browser compatibility, but not-so-good if I want to have more dynamic control of page layout.)
What I mean is that the height/width attributes of an iframe can (and should) be set to a hard-coded pixel size a la height="##" width="##", and this is good if I know the exact dimensions of the visitor's web browser and screen resolution, but if I want to (for example) show an iframe on a page that is exactly the width of the visitor's browser window...then I have to either rewrite the iframe module or employ a CSS trick in DNN's iframe module settings.
MSIE support expressions in CSS...which means that in a style declaration I can set the height of an element like <iframe> to an expression like: clientHeight-50. (In this case, MSIE will make the iframe 50 pixels less than the total height of the browser window - and older/other browsers will simply ignore the declaration.)
What you have suggested might be to place a script like the following into the framed page:
window.parent.frames("dnn_iframe_name").style.height='4000px' (doesn't work...)
Whereby, the height of the iframe (in the parent) is dynamically set by a script in the child frame. But, again for security reasons, web browsers don't allow child frames to access certain objects of the parent frame.
So, it seems that until the DNN iframe module provides a mechanism whereby the 'style' of the iframe can be defined in the module's settings, then I'll continue to employ this workaround in special circumstances.
I'll note also that I've been using this technique for many months with no ill effect.
Cheers