[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help

At 11:36 AM 2/12/96 -0600, you wrote:
>I am trying to run the following script and most of the time the Netscape
>produce an access violation error in my NT workstation. I do not know
>whether this a problem in my script or bug in Netscape. If any of you can
>help me I would appreciate it a lot.

Though I didn't check it closely, the offending lines are probably these:

>    winobj.document.close();
>    winobj.close();

There's a long-standing bug in JavaScript where you'll get a nasrty crash if
you close the output stream 
twice, or try to write to a closed output stream.  This, for example, will
likely GPF on you:

<SCRIPT = "JavaScript">
        document.write ("this is a test");
Hello, there!

It crashes because you've closed the output stream with the document.close,
yet there was more HTML to output.  Remove the
double closes, and look very closely through your script to see if this is
the case.

-- Gordon