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

If you are using either:

doctument.getElementByID(id).innerHTML

or

document.write

and you need to write something that has both single and double quotes, such as:

2007-03-09 12:24:41 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

use the escape character infront of your single quotes like this:
\'

2007-03-09 12:32:37 · answer #1 · answered by Anonymous · 1 0

Well, in the bit that you've posted, you have an unterminated string - the quotes opened at onmouseover=" are not closed. What you've done with single quotes inside double quotes should work. If you need to use double quotes inside a double-quoted string, use a backslash (\) in front of the interior quotes.

2007-03-09 21:17:26 · answer #2 · answered by injanier 7 · 0 0

fedest.com, questions and answers