1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test</title>
<script type="text/javascript">//<![CDATA[
function appendIframe(elt,url,width,height){
var i,e,d=document.getElementById(elt);
if(!d)return;
try{
i=document.createElement('iframe');
i.setAttribute('src',url);
i.setAttribute('width',width);
i.setAttribute('height',height);
i.setAttribute('frameborder','0');
i.setAttribute('scrolling','auto');
i.setAttribute('hspace','0');
i.setAttribute('vspace','0');
i.setAttribute('marginheight','0');
i.setAttribute('marginwidth','0');
i.style.padding='0';
i.style.margin='0';
i.style.border='none';
while(d.hasChildNodes())d.removeChild(d.lastChild);
d.appendChild(i);
}catch(e){}
}
window.onload=function(){
appendIframe('frame1','page.html','400','300');
}
//]]>
</script>
</head>
<body>
<div id="frame1"></div>
</body>
</html> |
Partager