A carriage return in alert dialog box : Dialog « Window Browser « JavaScript DHTML

A carriage return in alert dialog box


<title>A Simple Page</title>
<script language="JavaScript">
alert("A carriage return lies right\rin the middle of this line!");



Related examples in the same category

1.Displays and monitors the most used dialog boxes
2.Dialog in JavaScript
3.Open a dialog window
4. String Object's Length, Document.Location Properties, confirm and input dialog
5. Working with the Alert, Confirm, and Prompt Methods
6.Alert box (dialog) with line-breaks
7.Button click to display dialog
8.Pop-up Window - centred
9.Display a confirm box (dialog)
10.Display a prompt box (dialog)
11.Confirm Dialog Box
12.The Prompt Dialog Box: check the return result
13.Document for the Modeless Dialog Box
14.Use prompt for password checking
15.User input
16.Yes/No Confirmation
17.Non string parameter for alert()
18.Dialog Box Demo
19.Alert Window
20.Main Page for show Modeless Dialog
21.Document for the Modal Dialog
22.Main Page for show Modal Dialog
23.Create a pop-up
24.Alert Dialog
25.What is the output of a confirm dialog
26.If OK button was clicked
27.Use if-else with confirm dialog
28.Prompt Input Dialog
29.Pass string parameter to alert dialog box
30.Pass integer value to alert dialog box
31.Assign returning value from prompt dialog box to your variable
32.Escape string in alert dialog box
33.Tab key in the alert dialog box
34.New line character in alert box