PDA

View Full Version : Problem in Netscape and Textarea contents print


neena
05-06-2004, 09:04 PM
Hello,

i have textarea control and i want to print the contents of the textarea.I can print in IE and also Netscape but i cannt print newline in Netscape . I used this funcion


function pt(transcript) {

pw = window.open("","_blank","width=450,height=500,menubar=yes");
pw.document.open("text/plain");
pw.document.write(transcript.value);
pw.document.close();
if(window.print){pw.print()}
else{pw.alert("Use the menu to print the page or CTRL-P")}

}

help me how can i print newline in Netscape.


Thanks in Advance.

Neena