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");
 
PREVIOUS NEXT
Tagged: #line #javascript #alert
ADD COMMENT
Topic
Name
7+9 =