Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Javascript only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Javascript
line break in alert()
line break in alert()
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
andersond
New Member
Join Date:
Feb 2007
Posts:
110
#1
line break in alert()
Nov 10 '08, 01:55 PM
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?
iam_clint
Recognized Expert
Top Contributor
Join Date:
Jul 2006
Posts:
1207
#2
Nov 10 '08, 02:10 PM
Code:
alert("This\rIs how I would\rdo it");
\r for return.
Comment
Post
Cancel
acoder
Recognized Expert
MVP
Join Date:
Nov 2006
Posts:
16032
#3
Nov 10 '08, 03:01 PM
You'd probably have better luck with \n
Comment
Post
Cancel
iam_clint
Recognized Expert
Top Contributor
Join Date:
Jul 2006
Posts:
1207
#4
Nov 10 '08, 03:54 PM
we can make an agreement here \r\n ;)
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment