dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Beginner
Apr 20, 2000

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


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 = "<a href='http://www.myplace.com/mypage.htm'> The Greatest Site on the Web </a>";
Manoj K.
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date