I created a project with an index.html
file in my root folder with Brackets
. Because there are common js/css
files significantly I wanted to create projects under this root to be able to reach these common files from my current root. So I gave ../../
before my all paths for each of the links and scripts for my subfolder's index.html
like below,
<script src="../../js/main.js" type="text/javascript"></script>
But soon I realized it made my javascript functions
fail even if it's obviously working otherwise. I couldn't figure out why and I'll appreciate any idea about it.