On my site users can paste text (in this case a url) into an input field. I\'d like to capture the value of the text that was pasted using jQuery. I\'ve got this to work in
$('input').on('paste', function(e) { // common browser -> e.originalEvent.clipboardData // uncommon browser -> window.clipboardData var clipboardData = e.clipboardData || e.originalEvent.clipboardData || window.clipboardData; var pastedData = clipboardData.getData('text'); });