Sep 14, 2005 #1 pet41 Programmer Sep 13, 2005 16 NO I maby stupid, but I can't figure out how to put a linefeed in an alert string. I am use to VB and its easy with crlf. How to do this in Javascript? Regards Rune
I maby stupid, but I can't figure out how to put a linefeed in an alert string. I am use to VB and its easy with crlf. How to do this in Javascript? Regards Rune
Sep 14, 2005 #3 BabyJeffy Programmer Sep 10, 2003 4,189 GB Maybe an example would help? Code: alert('Hello[b]\n[/b]World'); // Hello World seperated by a new line Cheers, Jeff [tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch http://www.codecouch.com/jeff/[/tt] Upvote 0 Downvote
Maybe an example would help? Code: alert('Hello[b]\n[/b]World'); // Hello World seperated by a new line Cheers, Jeff [tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch http://www.codecouch.com/jeff/[/tt]
Sep 15, 2005 #4 deputydoofy Programmer Aug 30, 2005 63 US \n is correct and you can use it in a string. So... var myString="Hello\nWorld"; alert(myString); ...is perfectly acceptable. http://mywebpages.comcast.net/doofymusic Upvote 0 Downvote
\n is correct and you can use it in a string. So... var myString="Hello\nWorld"; alert(myString); ...is perfectly acceptable. http://mywebpages.comcast.net/doofymusic