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
  • 58,414
  • 16
  • 114
  • 157
TheCodeGeek
  • 147
  • 7

0 Answers0