syuichi-tsuji
4/26/2014 - 6:45 AM

selection.js

document.addEventListener('mouseup', function() {
  var text = window.getSelection().toString();
  console.log(text);
});