No. The only way is to delete it and make a new one on the other page.
I don't understand the comment about the recursive code. What kind of script
do you want to assign to the button, exactly?
Thank yoy try67 !
I am trying this way, now I am creating a new button, and I am trying to put, all the code of the original button in one function.
And, when I am creating de new button btn:
var btn = this.addField(name, type, page, newAddRect)
this not works...
the function is in one file in:
and the contains of the function is a simple alert.....
You wrote setAcion instead of setAction.
It's a good idea to set the console to open on errors and warnings. It
probably says something like: "btn.setAcion is not a function".