Script nodes bring decision logic and state management into VRML. A Script node is activated when it receives an event. At that point the browser executes the program defined in the Script node's URL field (passing the program to an external interpreter if necessary).