Note: GeoGebra’s JavaScript interface is interesting for users who have some experience in HTML editing.
In order to enhance your dynamic worksheets and increase their interactivity, GeoGebra applets provide a JavaScript interface. For example, you could create a button to randomly generate new configurations of a dynamic construction.
Please, see the document GeoGebra Applets and JavaScript for examples and information about using JavaScript with GeoGebra applets.