• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4576
  • Last Modified:

How do I create a line break in a Javascript Alert Box?

is it possible to create a line break in a Javascript "Alert" box?  I was thinking a Hex or ASCII character.  

Thanks.

Phil
0
SiriusPhil
Asked:
SiriusPhil
1 Solution
 
mrichmonCommented:
alert("Hello\nThis is on the second line");

\n is the return character
0
 
SiriusPhilAuthor Commented:
How that was easy.  

Thanks.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now