Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "quote inside quote inside quote" Watch "quote inside quote inside quote" New topic
Author

quote inside quote inside quote

pooja jain
greenhorn
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 ]

:d
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Use the backslash character to escape the quote.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: quote inside quote inside quote
 
Similar Threads
What is this?
quote inside quote inside quote
palindrome checker, tried to debug, keeps looping why?
quote inside quote inside quote
quote inside quote inside quote