Je rencontre des problèmes pour savoir comment référencer les nouvelles fenêtres du navigateur après les avoir ouvertes. À titre d'exemple, si je crée 3 nouvelles fenêtres d'un principal (index.html):javascript ouvrir les références de fenêtres
var one = window.open('one.html', 'one',"top=10,left=10,width=100,height=100,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no");
var two = window.open('two.html', 'two',"top=100,left=10,width=100,height=100,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no");
var three = window.open('three.html', 'three',"top=200,left=10,width=100,height=100,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no");
two.focus();
Comment pourrais-je me concentrer sur programme (ou tout simplement se référer à) navigateur « trois » si le navigateur « deux » est actuellement au point?
pour la "window.parent.childWindows.push (fenêtre);" je reçois toujours "Impossible d'appeler la méthode" push "de undefined" même si j'ai déclaré le tableau childWindows dans ma fenêtre parente – minimalpop
Essayez window.opener.childWindows –
Testé, cela fonctionne. –