Nov 2, 2003 #1 vasilek Programmer Joined Jan 5, 2003 Messages 99 Location US Here is a string. value1 value2 value3 How to display the values on the webpage with <br> in between? value1 value2 value3 Thanks.
Here is a string. value1 value2 value3 How to display the values on the webpage with <br> in between? value1 value2 value3 Thanks.
Nov 2, 2003 #2 GUJUm0deL Programmer Joined Jan 16, 2001 Messages 3,676 Location US Maybe something like value1+"<BR>"+value2+"<BR>"+value3 I have this little thing, Advanced Delusionary Schizophrenia with Involuntary Narcissistic Rage. It's no big deal really... Upvote 0 Downvote
Maybe something like value1+"<BR>"+value2+"<BR>"+value3 I have this little thing, Advanced Delusionary Schizophrenia with Involuntary Narcissistic Rage. It's no big deal really...
Nov 2, 2003 Thread starter #3 vasilek Programmer Joined Jan 5, 2003 Messages 99 Location US GUJUm0deL, it has to be dynamic, may be utilizing String.replace() Upvote 0 Downvote
Nov 2, 2003 #4 Lrnmore Technical User Joined Jun 11, 2003 Messages 743 Location US Here's an example using replace: Code: <html><head><script language="JavaScript"> var resp = /\s/g; var str = 'val1 val2 val3 val4'; var pstr = str.replace(resp,'<br>'); document.write(pstr); </script></head><body></body></html> 2b||!2b Upvote 0 Downvote
Here's an example using replace: Code: <html><head><script language="JavaScript"> var resp = /\s/g; var str = 'val1 val2 val3 val4'; var pstr = str.replace(resp,'<br>'); document.write(pstr); </script></head><body></body></html> 2b||!2b