Jump to content

JavaScipt quotes


vytas

Recommended Posts

I want to get quotes this sign = " Into a javascript variable something like thisvar image = new Array()image[1] = "<img src="<-- thats the problem.image[2] . and so further.

Link to comment
Share on other sites

image[1] = "<img src="should beimage[1] = "<img src='alternately use single and double quotes when they get nested inside each other. this will be the case for really any programming language.

Link to comment
Share on other sites

So will the single quote act the same like the double quote will ?

Link to comment
Share on other sites

Wait, Skemcin-can you nest them without escaping? E.g.document.write("Hello, and then I said 'Hey! you know what he said? he said "blahblahblah" yeah, that's what he said!' hey")

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...