Mon but est de soumettre un formulaire dans une nouvelle fenêtre. J'utilise le code suivant:Accéder au document de nouvelle fenêtre en chrome
var xmlWindow = window.open("getXML.htm");
xmlWindow.document.getElementById("getXML").action = "getData.asp";
xmlWindow.document.getElementById("getXML").method = "post";
xmlWindow.document.getElementById("getXML").innerHTML = "<input type='hidden' name='moduleID' value='ex1'/>";
xmlWindow.document.getElementById("getXML").submit();
Cela fonctionne très bien dans IE et Firefox, mais en chrome le xmlWindow.document.getElementById ("getXML") est nulle. Aucune suggestion?
pour référence ici est getXML.htm:
<html>
<head>
<title>getXML</title>
</head>
<body>
<form id="getXML" name="getXML">
</form>
</body>
</html>