Code
<!DOCTYPE html>
<html>
    <body>
       <center>
       <input type="text" onpaste="process()"value="paste your text here" size="40">
       </center>
       <p id="sample">
       </p>
       <script>
            function process()
            {
                document.getElementById("sample").innerHTML = "Your text is pasted!";
            }
      
</script>
    </body>
</html>                                                                                                                                                                                                                                                                                            

Result