This is an example of an HTML file containing a GeoGebra applet with buttons triggering the GeoGebra Javascript API.