Hi
I have successfully updated a section of innerHTML on a parent window from a child window but I am having trouble doing this the other way around.
Could someone please explain to me how to open a child window specifying a template document then update a portion of the HTML of that document.
ie something like ...
where template.html looks like ...
Any suggestions would be greatfully received.
Many thanks
Ivor
I have successfully updated a section of innerHTML on a parent window from a child window but I am having trouble doing this the other way around.
Could someone please explain to me how to open a child window specifying a template document then update a portion of the HTML of that document.
ie something like ...
Code:
<SCRIPT>
myWin = window.open("template.html", "newWin")
myWin.document.getElementById("updateBit").innerHTML = "Hello"
</SCRIPT>
where template.html looks like ...
Code:
<HTML>
<HEAD></HEAD>
<BODY>
<DIV ID="updateBit"></DIV>
</BODY>
</HTML>
Any suggestions would be greatfully received.
Many thanks
Ivor