0

Is it possible to link an html document on an innerHTML element rather than including the HTML in quotes?

headerTemplate.innerHTML = header.html

My reason for this is to separate the HTML from the javascript file and make it easier to edit the HTML in VS Code using code completion.

isherwood
  • 52,576
  • 15
  • 105
  • 143
TheCodeGeek
  • 147
  • 7

0 Answers0