By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,688 Members | 1,900 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,688 IT Pros & Developers. It's quick & easy.

line break in alert()

P: 110
I want to skip to a new line in an alert message. I have tried using CHR(13) and <br>. Neither works. Can anyone offer a better suggestion?
Nov 10 '08 #1
Share this Question
Share on Google+
3 Replies

Expert 100+
P: 1,208
Expand|Select|Wrap|Line Numbers
  1. alert("This\rIs how I would\rdo it");
\r for return.
Nov 10 '08 #2

Expert Mod 15k+
P: 16,027
You'd probably have better luck with \n
Nov 10 '08 #3

Expert 100+
P: 1,208
we can make an agreement here \r\n ;)
Nov 10 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.