You need to get the column and that can be used to get the text of the footer with the getFooterText method.
For example:
var grid = igtbl_getGridById(gridName);
var text = grid.Bands[0].Columns[2].getFooterText();
You may want to review the Client Side Object Model in the documentation as well.