load keyword explained

The load keyword is the second main point of execution for BlueJscript. By means of the load keyword you can start scripts that are sored somewhere in the network. The main positive advantage of the load keyword is that it can load a script not only from a file but also from an http connection.

load (java.net.URL someUrl )

The syntax is very simple and an example can make it even clearer.

htmlBase=constants.getParentUrl();
print ('htmlBase=',htmlBase,'\n');
load(new java.net.URL(htmlBase+'/../utilities.js'));     

The above code just loads a set of utility from another script file using the load command and a relative path.