vbscript: getref with parameter
问题 has anyone experience with passing a parameter to a function called with getref ? Following code is just an example, doens't work, how to pass the parameter to the mySub sub? <button id="myBtn">Click me</button> <script type="text/vbscript"> document.getElementById("myBtn").onclick=GetRef("mySub") Sub mySub(parameter) alert(parameter) End Sub </script> 回答1: First look at this article about event handling (anybody knows a better reference?) to get the context for: The code provided in the