Skip to content

Instantly share code, notes, and snippets.

@tanshio
Created June 1, 2014 06:23
Show Gist options
  • Save tanshio/14625c25c71b6ee847e8 to your computer and use it in GitHub Desktop.
Save tanshio/14625c25c71b6ee847e8 to your computer and use it in GitHub Desktop.
clipboard to form
document.body.onpaste=function(e){
var pasteText;
pasteText = e.clipboardData.getData("text/plain");
pasteText = pasteText.replace("console","");//text replace
document.getElementById("").value = pasteText;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment