English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

The code originally had 2 types of quotes but Im trying to add a new function which itself requires : double quote but since i already used double quote for document.write("") i cant and already used single quote for some other part.
those functions with the single and double quotes work but the new one which needs a third quote doesnt.
please tell me how to add a third quote or somehow fix it and ill give the points right away.

2006-11-11 04:00:47 · 1 answers · asked by Anoosh 1 in Computers & Internet Programming & Design

1 answers

You need to "escape" any double quotes inside other double quotes:

document.write("here is the 1st single quote ' here is a 2nd full quote \" any other questions?");

2006-11-11 06:13:01 · answer #1 · answered by Farnsworth 3 · 0 0

fedest.com, questions and answers