Link to home
Start Free TrialLog in
Avatar of ScottMacMaster
ScottMacMaster

asked on

Quote Mark In OnClientClick Message

I want to have quotes in some text displayed to the user when they click a botton but I can't get it to work.  This is my lastest attempt,

cmdDelete.OnClientClick = "return confirm('Are you sure you want to delete \'" + name + "\'?');"

I've tried quotes, double quotes, double single quotes, and other things but I keep getting javascript error when I run the page.  Also, something converts " to &quot when I try using quotes.

Does someone know how to do this?


Thanks,
ASKER CERTIFIED SOLUTION
Avatar of ScottMacMaster
ScottMacMaster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial