Hello:
I'm stuck with a small problem using windows created using
javascript.
Here's the code of the html file.
------------------------------------------------------------------------------------------------------
<html>
<head>
<title>Today's Date</title>
<script type="text/javascript">
function print_todays_date() {
var d = new Date(); // get today's date.
document.write(d.toLocaleString());
}
</script>
</head>
<body>
The date and time are: <br/>
<script type="text/javascript">print_todays_date();</script>
<script type="text/javascript">
w1 = window.open();
w1.document.write("Hello World");
</script>
</body>
</html>
------------------------------------------------------------------------------------------------------
Now in the above when i load the html page in FF 1.5 the date is
printed fine.
Also, a new window is opened with the text "Hello World", but the
window
cursor for the new window shows the the document is not loaded
completely.
Also, there's a partial blue bar at the bottom right of the new window
indicating
the page is not loaded completely.
I'd appreciate if anyone can point to the problem as to why the new
window
does not finish loading completely ?
Thanks a lot in advance.
Yashesh Bhatia