Passing Values between GeoGebra Applets
Applet 1
Applet 2
Search "ggbElem" in browser's "View Source" of this page.
For example, the id of the first applet is 150217, the id of the second applet is 150221.
![Image](https://www.geogebra.org/resource/rgx6sasq/ynOL8Cfnf3Tr2qpO/material-rgx6sasq.png)
Then in the first applet, you can use "ggbApplet150221" to access the second applet.
var i = ggbApplet.getValue("a");
ggbApplet150221.setValue("b",i);
Simiarily, in the second applet, you can use "ggbApplet150217" to access the first applet.
var i = ggbApplet.getValue("b");
ggbApplet150217.setValue("a",i);
gMath 互動數學教室 http://www.geogebra.hk