File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes What is document.write in Netscape? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "What is document.write in Netscape?" Watch "What is document.write in Netscape?" New topic
Author

What is document.write in Netscape?

milan doshi
Ranch Hand

Joined: Nov 03, 2000
Posts: 43
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
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
 
 
subject: What is document.write in Netscape?
 
Threads others viewed
NETSCAPE 6.2 & FRAMES
Calling ActiveX method in NetScape
Can I hide the components in IE as well as Netscape....
Strange Javascript Error
how to open xml file into html page
MyEclipse, The Clear Choice