How do I move this JavaScript event from an inline event to its own .JS file?
<p>Happened across a snip of JS that I've managed to make work for my uses, but as I'm brand new to javascript, I'm unsure whether I've understood how &amp; why it works.  As it stands, it's inline (inside an html  tag, but I'd like to see it either in its own .js file so it can be used by several thousand links on one of several hundred pages on the site I'm putting together.</p>

<p>The purpose of the javascript I was looking for was to kill or disable a link (and only that link) on a page after it had been clicked once.  I didn't want it to disappear, as I'd seen mention of, just be made un-clickable.  </p>

<p>Anyway, this is what I found.  Assistance is appreciated.</p>

<pre><code>&lt;A HREF="testvid.AVI" onclick="this.onclick=function(){return false;}"&gt;&lt;DIV ID="BOX1"&gt;This is a video file&lt;/DIV&gt;&lt;/A&gt;
</code></pre>

<p>Again, the question is, how to take that onclick event &amp; place it in its own .js file.  Thank you.</p>
