my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes quote inside quote inside quote Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "quote inside quote inside quote" Watch "quote inside quote inside quote" New topic

quote inside quote inside quote

pooja jain
Ranch Hand

Joined: Jan 12, 2005
Posts: 213
how do you provide third level of quotting?

i mean to say:

document.innerHTML = "<input type='text' onklick='alert("how to use quote here")' />";

(first quote is ", second inside first is ' - thats perfectly ok, now what about third inside second)

thanks in advance.
[ September 25, 2007: Message edited by: pooja jain ]

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63350

Use the backslash character to escape the quote.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: quote inside quote inside quote
jQuery in Action, 3rd edition