Surface 3D Chart Export to PNG programatically

Hi. Is it possible to export a 3D surface chart programmatically through a javascript function ?
Or simulate the click of the download button?

Thanks!

Try Plotly.downloadImage

Ok. It works.
Thanks!