I am using an iframe to display pages that I load from a menu on the parent page. I don't have the ability to modify the pages I'm linked to. On one of the pages, there is navigation that I don't want my end users to have access to. My best solution to prevent access to this is to position the page below the navigation on loading, and lock the iframe's scrolling.
However, since I load multiple pages, I need to have this positioning change depending on the link from the menu that the users select.
function repositionIframe(iframeId, iframeMarginHeight)
In my link, I include this:
'marginwidth' and 'marginheight' feel more like 'padding' to me, and it can be tricky to manipulate them with good cross-browser results. I'd probably recommend setting those attributes to 0 and rely on the standard CSS margin property to style an <iframe>.