title: Obtain a reference to <script> parent element
body: <p>I have a similar problem like posted <a href="https://stackoverflow.com/questions/2982598/obtaining-a-reference-do-the-scripts-parent-element">here</a> but instead of obtain the parent id, how Can I get a reference to the script parent without having to code an id for the script tag? </p>
  
  <p>For example, I have the following code injected to a website:</p>
  
  <pre><code>&lt;div&gt;
       some other html tags
       &lt;script src="http://path_to_my_script.js"&gt;&lt;/script&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What I need is that in my <code>path_to_my_script.js</code> file I can get a reference to the outer <code>div</code>.</p>
  
  <p>There is a catch and is that the code will be copied&amp;pasted in several places in the same webpage, which makes an identifier useless. </p>
  
  <p>There is any chance to do that without to code an id in the entire code?</p>
  
  <p>If the solution is with jQuery the better :D</p>
  
  <p>Thanks in advance.</p>