title: How to call js / script within href
body: <p>I've been using this successfully in my template:</p>
  
  <pre><code>&lt;span class="sharethis-text"&gt;
  &lt;p&gt;More  Options&lt;/p&gt;
  &lt;/span&gt;
  &lt;script src="http://w.sharethis.com/button/buttons.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  stLight.options({
  publisher:'******0b-6eed-4740-81e7-aa3ee0bd9f85',
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>But now I want to call this function in this:</p>
  
  <pre><code>&lt;More-sharebar&gt;&lt;a href="#"&gt;More options&lt;/a&gt;&lt;/More-sharebar&gt;
  </code></pre>
  
  <p>How is it possible to include the script properly?</p>
  
  <p>Apologies if the answer is easy. I'm a complete beginner. I've been searching but I can't find how to do it.</p>
  
  <p><strong>Edit:</strong> Thanks for the answers so far, and I think now I have the function stLight.options( but I don't know how to include the external js file. Instead of editing the functions.php file, is it possible to simply include the script above in my HTML, but give it a name, and somehow call that name in the href?
  The other thing: the function as it original works triggers on hover. I'd like to retain that, if possible.
  Apologies for my ignorance.</p>