Escape string in alert dialog box
<html> <head> <title>A Simple Page</title> <script language="JavaScript"> alert("\"It wasn\'t like that!\" she said."); </script> </head> <body> </body> </html>