Instead of just saying "it's not working", it would be helpful to us
as well as to yourself if you could describe more what's wrong or which part
of your code doesn't work.
In NS6+, you could click on menu Tools > Web development >
JavaScript console and try to understand what's wrong with your code.
On the other hand, I don't understand the use of those '\n' in your
code. And couldn't you just write '\n\n\n\n....' if you need so many
newlines?
> -----Original Message-----
> From: Udhayakumar. U [mailto:udhayakumar@i...]
> Sent: samedi 8 mars 2003 08:23
> To: javascript
> Subject: [javascript] Window open in Netscape 6
>
>
> Hi,
>
> I am not able to open a window in Netscape 6.0
>
> I am using the following code
>
>
> var txt = '\n' +
>
> '\n' +
>
> '\n'
> +
>
> '\n' +
>
> '\n' +
>
> '\n' +
>
> '\n' +
>
> '\n'
>
> var Height = screen.height;
>
> var windowName = "HistoryDetails" + intCounter
>
> if(Height > 720)
>
> {
> newWindow[intCounter] = window.open
>
> ('',windowName, "width=1012,height=708,left=0,top=0");
> }
>
> else
> {
> newWindow[intCounter] = window.open('',windowName,
> "width=788,height=522,left=0,top=0");
>
> }
>
> newWindow[intCounter].opener = self
>
> var newDocument = newWindow[intCounter].document
>
> newDocument.write(txt)
>
> newDocument.close()
>
> On bodu load of this form i am calling the following function
>
> function SendForm()
> {
> newWindow[intCounter].document.PRCHisfrm.qString.value
> = intCounter
>
> newWindow[intCounter].document.PRCHisfrm.submit()
>
> }
>
>
> In IE and Netscape 4.7x it is working well
>
> But in NS 6. it is not working
>
> Please help me to solve this
>
> Regards
>
> Udhaya
>
>