How to get the element by its src
attribute?
I'm using:
<script type="text/javascript" src="mysrc.js?id=1000">
I would need to get that element on a variable. All I know is getAttribute("src")
returns the src. If I knew anything else besides the actual src which is all I have. I can't use jQuery, just plain JS.