As mentioned previously, when the iframe is loaded its content is transferred to a display div. The styles of the iframed document are not transferred. Styles in the document containing the iframe apply to the transferred content.
Since the content from the iframe is incorporated into the main document, links will by default load the new URL into the main window. A target attribute can be included in links specifying the name of the hidden iframe to load the new content there instead:
Function calls to load the iframe can be set up unobtrusively instead of being included in links if you prefer. This example does so. See in the head of the main document.