title: How to add JavaScript onClick handler to an embedded html object?
body: <p>I'm trying to add an onClick handler to an embedded object. The handler needs to execute a function which is in an external .js file which is linked to the current html file via <code>&lt;script src="...</code>.</p>
  
  <p>Do I need to reference the function differently due to it being located elsewhere?</p>
  
  <p>Here is the code as it currently stands (which does not work, but also does not produce any errors): </p>
  
  <pre><code>&lt;embed src="svg/button.svg" id="buttonEmbed" width="95" height="53" 
  type="image/svg+xml" onClick="buttonEvent('buttonClicked')"/&gt;
  </code></pre>