Hello, I am doing a small project which requires me to open a new window on the fly and pass some content in that window. I am using the following code: var n1=document.form1.text1.value; var newwin=open('',"mywindow',mybars); //mybars has the desc of my window bars like status=no & so on. newwin.document.writeln("<html><head>...</head>"); newwin.document.writeln("<body>.............."); newwin.document.writeln("<input type=text name=t1 value="+n1+">"); The above code works fine in IE but in Netscape I only get a Blank window, i.e I am not able to view any thing that I write dynamically. i.e It seems document.write does not work in Netscape or I am going wrong somewhere. Can someone please suggest / advice. Thanx in Advance, Milan Doshi
bill bozeman
Ranch Hand
Joined: Jun 30, 2000
Posts: 1070
posted
0
document.write is a valid Netscape expression, has been for a long time, so it must be somewhere else in your code that you are having problems. Post your code and we can take a look. Bill