Can anybody tell me how to find if clipboard data contains enter (next line) and tab or not
I have code for paste event as:
document.addEventListener('paste',function(event){
if(event.clipboardData.types.indexOf('text/plain') > -1){
var data=event.clipboardData.getData('text/plain');
event.preventDefault();
}
});
I want to print a alert if data contains tab or enter (nextline).