How to find out the URL of the created JS file?
Say the JS file (which is part of the library), and the HTML file (which is the application) is on another server. Finding out the URL of an HTML file is easy. But how can I find out the server name and server path of the JS files in the JS file itself? (Edit: there is a bootloader that calls other thsi library JS files in the same directory structure)
Preferred jQuery or pure JS solution.
Edit:
After I found out from your answers and comments, I decided that it would be easier to actually move the bootloader code to the first server, where html also lives, which avoids the problem.
source
share