Kennyshu's blogspot
.Net programming notes
2011/03/04
[javascript] Text wrapping in the alert/confirm function
Wrap words in the javascript alert (or confirm).
This doesn't work.
alert("First Line<br/>Second Line")
This doesn't work.
alert("First Line\r\nSecond Line")
This will work
alert("First Line\\r\\nSecond Line")
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment