Online export services filename

I want to make javascript function to export excel.

function onExport(){
var v_filename = ‘test’;

But, Exported file name is ‘grid’.

I want to change file name.

Are you using the standalone version of export service?
The codebase doesn’t support custom filename. It is rather easy to change the behavior, though, as you have full sources of the export service.