Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

new line in javascript alert

//alert function is used to prompt alert box 
//inside the quotes we write string to display 
//use 
 to enter new line
alert("John
James
Steve");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #line #javascript #alert
ADD COMMENT
Topic
Name
3+6 =