Jump to content

Escape


Eivo

Recommended Posts

Thank you :)...Wait, another question...If I needed actual double quotes, would that be a series of 3 quote marks?ex: document.write("<input name=""author"" type=""text"" value=""" & variable & """ size=""50"" />")

Link to comment
Share on other sites

I'm sorry, I said double quotes but thats not what I meant. I meant having a quote before the end of the string quote, if I am making any sense.For Example:Say I want to write this string:The man said, "I like bananas!", before he left.In JavaScript it would be...

Response.Write("The man said, \"" + statement + "\", before he left.")

and in VBScript it would be...

document.write("The man said, """ & statement & """, before he left.")

Is that code right?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...