This is the structure of my program. I wish to link HTML file from different directory into my JavaScript. Those html files are written with seperately functions.I wish to link into the script, making the index.html a multipurpose webpage. :

The code in my JavaScript is let var1= "../../../traffic_switch/traffic_switch.html", but it doesn't work. What should I do?