In our previous article, we have discussed Top Down vs Event Driven approach in programming. In this example, I am going to present a very simple example for Event driven approach.
Type the following code into your text editor, save the file with a .HTM or .HTML extension, and then load it into Internet Explorer 6 (if you are running Internet Explorer 6/7 and you are running this file off your desktop, you might have to dismiss some security warnings and allow ActiveX).
The code goes here:
The below figure shows the result of clicking the button on the page. In this case it’s only a message box but it could be much more.
------------------------------------------------------------------------------------------------------------------------------------
Have questions on this article? Feel free to ask me in the comments section below.
If you like this post, I would suggest you to subscribe my RSS feed to have future articles delivered to your email address directly.
------------------------------------------------------------------------------------------------------------------------------------
Saturday, July 23, 2011
VBScript Event Driven Code Example
at 1:32 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment