Regardless of whether it is a script, an html file (for example, for a frame), a css file, an image, any, if you do not specify a server / domain, the path to the html document will be the default, so you can do, for example,
<script type=text/javascript src='/dir/jsfile.js'></script>
or
<script type=text/javascript src='../../scripts/jsfile.js'></script>
If you do not provide a server / domain, the path will refer to either the page path or the script of the main document path
Graza Feb 12 2018-10-12T00 : 00Z
source share