alert() Javascript command not working online all the time
Answered
I am using the alert command several times in a JavaScript code but it is showing me the information only of the last alert that I have in the code. It only occur in online Geogebra version.
This is an example for them to test why this error occurs.
var num=prompt("Entre un valor",5);
alert("El valor almacenado en la variable num fue: "+num);
ggbApplet.evalCommand("num="+num);
var str=prompt("Entre un mensaje: ","Hola Mundo");
alert("El mensaje almacenado en la variable num fue: "+str);
ggbApplet.evalCommand("str=\""+str+"\"");
var list=prompt("Entre un mensaje: ","{1,2,3,4}");
alert("El mensaje almacenado en la variable list fue: "+list);
ggbApplet.evalCommand("list="+list);
Please post your .ggb file
Comments have been locked on this page!