Get current object with javascript in geogebra

Sebayy shared this question 8 months ago
Needs Answer

I want to make a function which f.e. deletes the executing object


//Global js:
function delete(obj){
ggbApplet.deleteObject(obj);
}

//OnClick js:
delete(this);

but "this" may works with all major browsers but not with geogebra

How am I supposed to do this in geogebra (with js, not geogebra script)


Thanks for your help!


MDN about "this"


Comments (1)

photo
1

> executing object


What do you mean by this? Please explain what you are trying to do overall

© 2019 International GeoGebra Institute