devxlogo

Avoid Double Quotes Inside Quoted Strings

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 ";

devx-admin

Share the Post: