Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

Iframe

De MoodleDocs
La revisió el 12:28, 1 ago 2008 per chris collman (discussió | contribucions) (See page comments, Possible advanced trick for teacher to use)
(dif.) ← Versió més antiga | Versió actual (dif.) | Versió més nova → (dif.)
Salta a:navegació, cerca

IFrame (Inline Frame) is piece of HTML code that makes it possible to place a HTML page/document inside another HTML page/document.

The size of the IFrame can be specified in the surrounding HTML page, so that the surrounding page can already be presented in the browser while the IFrame is still being loaded. The IFrame behaves much like an inline image and the user can scroll it out of view. On the other hand, the IFrame can contain its own scroll bar, independent of the surrounding page's scroll bar.

The following is an example of an HTML document containing an IFrame:

<html>
   <body>
       The material below comes from the website http://example.com
       <iframe src="http://demo.moodle.org" height="200">
           Alternative text for browsers that do not understand IFrames.
       </iframe>
   </body>
</html>

Caution: not all browsers recognize IFrame. However, Mozilla Firefox, Opera and Microsoft Internet Explorer introduced contentEditable and designMode, which enables users to edit the contents of the HTML contained in an IFrame. Popular web applications which make use of this feature including Google Docs & Spreadsheets (formerly Writely), JotSpot Live, and Windows Live Hotmail to name a few.

See also