25 février 2010

Inserer HTML page into another HTML page

...Ou comment se débarasser des iframes en xhtml strict?


Aleksandar Vacić dans son post explique comment utiliser l'élément <object> pour inclure du html dans une autre page.

Voici le code :

<!--[if IE]>
<object classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13" data="some.html">
<![endif]-->
<!--[if !IE]> <-->
<object type="text/html" data="some.html">
<!--> <![endif]-->
<p>backup content</p>
</object>
view raw noiframe.html hosted with ❤ by GitHub