[javascript] probleme d'ecriture

Résolu
Bonjour,

Ca marche pas!!

function image() {
parent.document.getElementById("IFrame2").height=220 .src='http://www.google.fr';

}
</script>

Je definit la hauteur de mon Iframe (ca sa marche!) et j'affiche une page dans mon iframe (ca sa marche pas!)

Quelqu'un a une idées?

Merci

Az
Configuration: Windows XP
Firefox 2.0.0.7

2 réponses

  1. salut,

    essayes:

    
    function image() {
    obj=parent.document.getElementById("IFrame2");
    obj.height="220";
    obj.src='http://www.google.fr';
    
    }
    0