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 whcih is all I have. I can't use jQuery, plain JS.
Thanks