http://www.htmlgoodies.com/beyond/javascript/article.php/3470891 -----Original message----- From: Daniel Kessler danielk at umd.edu Date: Mon, 14 May 2007 09:10:48 -0700 To: thelist at lists.evolt.org Subject: [thelist] quote in variable > I have this line, > var answer = window.confirm("Would you like to delete the publication > " + the_publication + "; #" + ticket_num + "?"); > > It works well except when the variable the_publication has a quote in > it. For example "Chapter titled, as if you didn't know". > > How do I deal with that? > > thank you.