Creating Scriptlets

So far we've seen some code snippets that demonstrated scriptlets in action. Now it's time to see what's really needed to write them. The core of any scriptlet is its

public_description
object (or equivalent) in which you define the programming interface. A scriptlet can have public properties, methods and events and can access virtually any of the features that DHTML introduced. So a valid prerequisite is a good understanding of the DHTML object model.

While writing scriptlets you can use and mix any script language you want. However, don't forget that Internet Explorer 4.0 natively supports only JScript (Microsoft's implementation of JavaScript) and VBScript.

© 1997 by Wrox Press. All rights reserved.