<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'>
window.onload=function()
{
console.log( document.getElementById('scriptID').src);
}
</script>
</head>
<body>
<script id="scriptID" type="text/javascript"
src="http://external.script.com/file.js">
</script>
</body>
</html>