Bonjour !
Je cherche, je cherche, et je trouve pas ...
J'ai deux pages :
index.htm, et dedans.htm
dedans.htm est inclus dans index.htm grâce à une pseudo frame :
<object type="text/html" data="dedans.htm" id="dedans" style="width:200px;height:200px;"></object>
Le code de index.htm :
<
html>
<
head>
<
title>NoName</
title>
<
script type="
text/javascript">
<!--
function alert2(){
alert("
Bonjour !")
}
-->
</
script>
</
head>
<
body>
<
object type="
text/html"
data="
dedans.htm"
style="
width:200px;height:200px;"></
object>
</
body>
</
html>
Le code de dedans.htm :
<
html>
<
head>
<
title>NoName</
title>
</
head>
<
body>
<
script type="
text/javascript">
<!--
self.parent.alert2()
-->
</
script>
</
body>
</
html>
Sous Firefox et Opera, ca fonctionne, mais sous Internet Explorer, il me met l'erreur "Cet objet ne gère pas cette propriété ou cette méthode" en pointant sur la ligne de script de dedans.htm
Je comprend pas pourquoi, j'ai beau essayé toutes les combinaisons (parent.alert2(), parent.window.alert2()...) et de déplacer mon code n'importe où (dans la balise head...) ca marche pas !
Quelqu'un a une idée ??
Merci d'avance
