VBScript 5.0 has a new feature which is allow you to assign a function to an event handler. In a web page, it looks like this
Window.click = getref(window_click)
It is easy isn’t? That is because “Window” is accessible to the script engine, what if it is not? For example, how do we pass
in the event handler’s variable to the script so that the script can assign a function to it, or vise versa, how do we return the
function’s address back to the host application so that it can assign it to the event handler?
No comments:
Post a Comment