No, there is no such elements in Configurator 2.
You can only run the script through a button.
An alternative could be through the Html widget or utilizing flash buider (flex).
I second what Gary said.
Please provide sample code!