ajax response length

JavaScript
$.get('ajax/test.html', function(data) {
  alert(data.length);
});

Source

Also in JavaScript: