arbilus
Expert
Bonjour, je ne comprend pourquoi cela ne fonctionne pas :
[cpp]<head>
<SCRIPT>
function h1(){
document.getElementById('pp').style = 'height:1px; width:1px;';
}
</script>
</head>
<body onLoad="h1()">
<iframe style="" scr="" id="pp"></iframe>
</body>[/cpp]
Normalement la iframe devrait être à 1px mais elle ne l'est pas ... Pouvez-vous m'expliquer ?
[cpp]<head>
<SCRIPT>
function h1(){
document.getElementById('pp').style = 'height:1px; width:1px;';
}
</script>
</head>
<body onLoad="h1()">
<iframe style="" scr="" id="pp"></iframe>
</body>[/cpp]
Normalement la iframe devrait être à 1px mais elle ne l'est pas ... Pouvez-vous m'expliquer ?