I have created a <script>
tag in an http://example.com/index.html tag using javascript like
(function() {
var script_tag = document.createElement('script');
script_tag.setAttribute("type","text/javascript");
script_tag.setAttribute("src", "http://example2.com/xyz/def/internal.js");
(document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag);
})();
Now inside this internal.js file i want to get its file path "http://example2.com/xyz/def/"