i have a main.html file which works well.
var elements = document.getElementsByClassName("quest")
<a class="quest">Quest 1</a>
<a class="quest">Quest 2</a>
<a class="quest">Quest 3</a>
However i would like to seperate it. So the main.html file still contains the javascript, but an other data.html file contains the html part of the code. I would prefer an option using pure javascript (no jQuery etc). Thank you.