My goal is to submit a form in a new window. I'm using the following code:
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();
This works fine in IE and Firefox, but in chrome the xmlWindow.document.getElementById("getXML") is null. Any suggestions?
for reference here is getXML.htm:
<html>
<head>
<title>getXML</title>
</head>
<body>
<form id="getXML" name="getXML">
</form>
</body>
</html>