GeoGebra JavaScript and XML demonstration

by Michael Horvath

Introduction

Edit the JavaScript and XML source code in the text fields. Press the various buttons to retrieve or update the XML source, as well as evaluate some JavaScript.

A full list of JavaScript commands available for use within an HTML file can be found here. A description of the GeoGebra XML file format can be found here. A list of regular commands can be found here.

Note that, with a few exceptions, the JavaScript commands can all be executed from within the "Global JavaScript" of the "Scripting" menu.

XML code cannot be modified while a worksheet is open and running. Instead, you need to extract the XML file from a GGB file using 7-Zip or some other archive tool.

Applet

JavaScript

XML Code

JSON Code

Creative Commons License
This content is licensed under the Creative Commons Attribution-Share Alike 4.0 Unported License.