faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 8 people (25%) answered Yes
Recently 2 of 8 people (25%) answered Yes

Entry

how to display escape character and a quote. For example suppose i want to alert \'

Apr 7th, 2008 23:35
ha mo, Colin Fraser, anand sane,


Try:
<script>
msg="\"Here I\'ll be, and here I\'ll stay\""
alert(msg)
</script>  
I think this is what you are after, but I could not get the real sense 
of it. Note that this format allows you to make it into a function and 
send different messages to the same alert().
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com