Browser dependencies when using the API

The two most popular Microsoft Windows-based web browsers--Microsoft Internet Explorer and Firefox--both support JavaScript (along with Java). JavaScript to Java communication is also supported in many web browsers on other platforms, including Mozilla-based browsers (various platforms) and Apple Computer's Safari browser (version 1.2 or later) on the Macintosh. Microsoft Internet Explorer for Windows also provides VBScript, a scripting language with a syntax and structure similar to Visual Basic and Visual Basic for Applications, but not similar to JavaScript. If you write scripts using VBScript, they can run only in Internet Explorer for Windows.

If you expect to have multiple instances of Reflection emulation applets running at the same time and you need to access them using the API, it is important that each applet instance have a unique name (which you can specify using the Reflection prefsName parameter in the <applet> tag), and that your script use that unique name.

If you're using static web pages, one way to generate a unique name for each applet is to generate the applet tag and the scripts that reference the applet dynamically using JavaScript, and generate a unique applet name each time the web page is loaded. You could do this by getting the current system time when the page is loaded, and using that as the applet name.