GeoGebra Advanced Tutorial 7 – Embedding Form Controls and JavaScript I

We have discussed before how to export a GeoGebra file into dynamic html. In all of our GeoGebra dynamic HTML documents, we have not allowed input from user except by dragging objects within the applet. In this tutorial, we are going to use HTML Form commands and basic Javascript to get input from the user using a text box and a command button.  In particular, we are going to display a dynamic HTML document with a Cartesian coordinate, a text box where the user will input the equation of the function that they want to graph, and a command button that will execute the graph command when clicked.  The final output of our tutorial can be viewed here and the html file (javascript1.html) can be downloaded  here.

If you have a background in HTML and Javascript, this tutorial will be quite easy; otherwise, read the  explanation about the HTML Form and Javascript commands below. » Read more