Client Code

You can also easily add client code in IntraWeb 17 much easier than you could in previous IntraWeb versions. To add client code, we use the ClientEvents property. Select GuessButton, expand the ClientEvents property in the object inspector, and then enter this into the value:

window.alert('Hey there!');

It should look like this:

Only One Event?

Note that Button has only one ClientEvent. Many more will be added, this screenshot is from a beta in which the controls were not finished yet.

Test It

If we preview it and press the Guess button:

We just ran our first bit of client code, without even compiling the application.