SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Alert Box-Oine Breaks
-
Nov 6, 2003, 05:53 #1
Alert Box-Oine Breaks
How do you create a line break in an alert box with JavaScript?
Thank you.O see the happy moron,
He doesn't give a damn;
I wish I was a moron,
My God,perhaps I am!
-
Nov 6, 2003, 06:14 #2
- Join Date
- Sep 2002
- Location
- Grand Rapids, MI
- Posts
- 1,168
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Use the return character "\r".
E.g.Code:window.alert('line1\rline2');
AndyFrom the English nation to a US location.
-
Nov 6, 2003, 07:04 #3
Thanks Andy.
I had forgotten that little tip.O see the happy moron,
He doesn't give a damn;
I wish I was a moron,
My God,perhaps I am!
Bookmarks