M
mike
I have a parent window where I open a child window.
In that child window I have some js that creates a row in the parent
window, it looks like:
if ( self.opener.document.update )
{
var actTable =
self.opener.document.getElementById("Action_Table");
myTR = self.opener.document.createElement("TR");
myTD = self.opener.document.createElement("TD"); myA =
self.opener.document.createElement("A"); myA.href =
"javascript:void(null);"; myA.onclick = function (evt) {
alert('mike'); } myA.className = "greenlink";
myTEXT =
self.opener.document.createTextNode('click'); myA.appendChild(myTEXT);
myTD.appendChild(myA);
myTR.appendChild(myTD);
var lastRow = actTable.rows[actTable.rows.length-1];
lastRow.parentNode.appendChild(myTR);
}
This js creates the row in the parent window ok, but I only get the
alert message when the child window is up. After I close the child
window I get no alert.
Mike
In that child window I have some js that creates a row in the parent
window, it looks like:
if ( self.opener.document.update )
{
var actTable =
self.opener.document.getElementById("Action_Table");
myTR = self.opener.document.createElement("TR");
myTD = self.opener.document.createElement("TD"); myA =
self.opener.document.createElement("A"); myA.href =
"javascript:void(null);"; myA.onclick = function (evt) {
alert('mike'); } myA.className = "greenlink";
myTEXT =
self.opener.document.createTextNode('click'); myA.appendChild(myTEXT);
myTD.appendChild(myA);
myTR.appendChild(myTD);
var lastRow = actTable.rows[actTable.rows.length-1];
lastRow.parentNode.appendChild(myTR);
}
This js creates the row in the parent window ok, but I only get the
alert message when the child window is up. After I close the child
window I get no alert.
Mike