[POO] Comment acceder a un objet javascript instancie dans une page mere
bonjour a tous,
mon probleme est le suivant j instancie un objet dans une page web comme ceci:
Code:
1 2 3 4 5 6 7 8 9
|
<script type="text/javascript">
var oBlock = new Block( 'B1' ) ;
oBlock.BasePath = "../rep1/" ;
oBlock.Value = 'valeur de test' ;
oBlock.Create() ;
</script> |
Cet objet est instancie dans une page page1.html.
Ensuite page1.html ouvre une page fille page2.html grace a la methode window.open();
Je voudrais savoir s il est possible d'obtenir une reference sur l objet oBlock dans la page fille page2.html notamment au moyen de window.opener.xxx ? ou autre ?
Merci de votre aide
Nico