I have a folder called projects
and in it I have a game
folder and an engine
folder. I have my engine.js
file inside the engine
folder and I was wondering if I could access it with my game.html
file from the other folder like so
<script type ="text/javascript" src ="\engine/engine.js"/>
Now, obviously the above doesn't work, but what I need to do is go back out of the game
folder to the project
folder and then into the engine
folder.
File tree: projects folder
- projects
- engine
- engine.js
- game
- game.js
- engine
What is the proper format for src
to provide users with a link to engine.js
?