Possible Duplicate:
How may I reference the script tag that loaded the currently-executing script?
Is there any way to get a reference to the currently running script element if it was appended dynamically after page load? The answers to this question do not work as I do not know the tag ID and the [scripts.length-1] method fails when multiple tags have been appended in succession.