i-Safire said:
If you really need to modify the title of document in new window, try the
following:
<HTML>
<script>
var var_oTimer_Obj, var_oWinOpen_New;
function fun_mWinOpen()
{
var_oWinOpen_New = window.open('about:blank');
var_oTimer_Obj = window.setInterval("fun_mDoc_ReTitle('~~newTitle~~ ')", 10);
}
function fun_mDoc_ReTitle(prm_sDoc_NewTitle)
{ if (var_oWinOpen_New.document.readyState == 'complete')
{ var_oWinOpen_New.document.title=prm_sDoc_NewTitle;
window.clearInterval(var_oTimer_Obj);
}
}
</script>
<input type=button value="open window" onclick="fun_mWinOpen()"></input>
</HTML>
No offense meant, but I would really hate to have to read
much code using that naming convention.
It leaves no doubt about what every identifier is, but at
the cost of destroying the readability of the code.
If the code is written well, and meaningful names chosen
and appropriately documented, I shouldn't ever have any
question about the identifiers, anyway.
For example, if you name your functions "openNewWindow()"
and "retitleDocument()", the simple fact that they are verbs
tells the reader that they are functions.