[Javascript] Netscape 6.2 Issue

Steve extstarrfam at cox-internet.com
Mon May 13 17:42:49 CDT 2002


I wrote a script that examines the window that Calls it
for information and then writes the information on
another document.  The window and it's document Call
the script by the insertion of an onLoad= in it's body
tag;
</script>
</head>
<body onLoad="open('Display Window
Info.htm').displayWindowInfo(this.document)">

I have no trouble getting it to work in IE5.5 version
4, but all I can get from Netscape 6.2 is a blank page.
The exception is if I insert code outside of the
function that Calls the function;
if (navigator.appName.toLowerCase( )=="netscape")
{displayWindowInfo(document);}
I can then get an Alert message from the function but
nothing else occurs if I use the code above.

Here is the function's statement:
function displayWindowInfo(document) {

Does any one have some thought's on this that will help
me acess the function using Netscape?





More information about the Javascript mailing list