M
Michael Landberg
Hi
I have a piece of code that has to open a new small window with some
formatting text in it. If I run the code and the new windows opens the
text is displayed without the formatting ( spaces, open lines between
some text, etc.). But when I place an alert function like
alert(newContent) I can see perfectly all the formatting that is in
the text.
Is there a variable I have to add in my code below to make sure that
the new window is opened with the text formatting?
newWindow =
window.open('','','width=500,height=300,left=550,top=250",status=no,toolbar=no,scrollbars=yes ,
menubar=no');
// write HTML to new window document
newWindow.document.write(newContent)
Any help will be appreciated.
Regards
I have a piece of code that has to open a new small window with some
formatting text in it. If I run the code and the new windows opens the
text is displayed without the formatting ( spaces, open lines between
some text, etc.). But when I place an alert function like
alert(newContent) I can see perfectly all the formatting that is in
the text.
Is there a variable I have to add in my code below to make sure that
the new window is opened with the text formatting?
newWindow =
window.open('','','width=500,height=300,left=550,top=250",status=no,toolbar=no,scrollbars=yes ,
menubar=no');
// write HTML to new window document
newWindow.document.write(newContent)
Any help will be appreciated.
Regards