How to get an element by its src attribute. I use:
<script type="text/javascript" src="mysrc.js?id=1000">
I would need to get this element in a variable. All I know is getAttribute("src") returns src if I knew anything else besides the actual src, which is all I have. I can not use jQuery, simple JS.
thanks
source share