OceanDesigner
Programmer
I have a page with a button and some text fields. When the button is pushed a new window opens that prints the text in the text fields in window 1 to the page in window 2. I do this with in line javascript:
This field can have carriage returns, but the returns are not observed in the second page. So I need to replace the carriage returns with "<br>". In vbscript, I can do this very simply with: replace(variable,chr(13),"<br>"). What is the comparable code in javascript?
Thanks, Jeff
Code:
document.write("<td>" + opener.document.myform.Description.value + "</td>");
This field can have carriage returns, but the returns are not observed in the second page. So I need to replace the carriage returns with "<br>". In vbscript, I can do this very simply with: replace(variable,chr(13),"<br>"). What is the comparable code in javascript?
Thanks, Jeff