Avoid Double Quotes Inside Quoted Strings

Avoid putting double quotes inside of double quotes in your HTML code. You may not get a compiler error, but your script just won’t work.

Instead, substitute single quotes for any inner sets of double quotes, as in:

 Link.innerHTML = " The Greatest Site on the Web ";
Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: