Hmmm....I don't know if this will work or not, but I guess you can try it.
Creating the popup is easy:
Code:
<a target="WATCHER" href="watcher.html"
onclick="window.open('','WATCHER','height=200,width=500,scrollbars=no,status=no');">
click to open watcher window
</a>
Then the code for "watcher.html":
Code:
<html>
<head>
<script type="text/javascript">
function update( )
{
var here = document.getElementById("putItHere");
var tbl = opener.document.getElementById("commentary");
var rows = tbl.getElementsByTagName("tr");
for ( var r = 0; r < rows.length; ++r ) {
var row = rows[r];
if ( row.className == "oversummary" ) {
var cell = row.getElementsByTagName("td")[1]; // get the second td
here.innerHTML = cell.innerHTML;
setTimeout( update, 30000 ); // do this again in 30 seconds
return;
}
}
// if we get here, we couldn't find the cell in the opener:
here.innerHTML = "<b>Data no longer available</b>";
}
</script>
</head>
<body onload="update()">
<h2>Summary:</h2><br>
<h3 id="putItHere"></h3>
</body>
</html>
I'm not at all clear what the point in this is. If the opener window is closed, then the watcher window will no longer be able to get the summary. So why bother with the separate window? Just keep looking at the original information on the original page.