Add quotation marks to alert box in JavaScript
Description
The following code shows how to add quotation marks to alert box.
Example
<!-- w w w . j a v a2s . co m-->
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
alert("\"That wasn\'t how it was at all!\" she said.");
</script>
</head>
<body>
</body>
</html>
The code above generates the following result.
Javascript Tutorial Browser Dialog
Get value from prompt dialog and display it...
Output the Confirmation dialog returns bool...
Prompt dialog with default value in JavaScr...
Show a confirm dialog in JavaScript
Show a find dialog with window.find() in Ja...
Show an alert dialog in JavaScript
Show the print dialog in JavaScript
Show the prompt() dialog in JavaScript
Use alert Boxes in JavaScript
Use alert dialog box to display the content...
Use confirm method in if statement in JavaS...
Add quotation marks to alert box in JavaScr...
Create a Confirmation dialog in JavaScriptGet value from prompt dialog and display it...
Output the Confirmation dialog returns bool...
Prompt dialog with default value in JavaScr...
Show a confirm dialog in JavaScript
Show a find dialog with window.find() in Ja...
Show an alert dialog in JavaScript
Show the print dialog in JavaScript
Show the prompt() dialog in JavaScript
Use alert Boxes in JavaScript
Use alert dialog box to display the content...
Use confirm method in if statement in JavaS...