title: Setting onclick dynamically and passing in the element itself
body: <p><code>element.onclick= aFunction()</code> does not call the function when <code>element</code> (in this case a <code>&lt;SPAN&gt;</code> element) is clicked.</p>
  
  <p>This question has been answered for JavaScript (question by Nick Van Hoogenstyn), but how do you do the same sort of thing for VBScript? The reason why I'm using VBScript instead of JavaScript is that I'm creating an HTA and using VBScript for the file access activities within it.</p>