Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Iframes, also called inline frames, allow for one HTML document to be embedded inside another.[75] Iframes are best used for integrating HTML content, such as an ad, that’s from a web site different from that serving the main page.
[75] http://www.w3.org/TR/html4/present/frames.html#edef-IFRAME
A benefit of using iframes for this purpose is that their document is entirely independent from the parent document. Relative URLs inside the iframe are resolved relative to the iframe’s base URI, not the parent’s. User agents can give the iframe focus for printing, bookmarking, saving, and so forth. Perhaps most important, JavaScript included in the iframe has limited access to the parent. For example, an iframe from a different domain can’t access the parent’s cookies. This is an important consideration when web developers must allow third-party content, such as ads, in their pages but they don’t have control over this content.