Read 194 times | Created 2013-01-21 07:21:16 | Updated 2013-01-21 07:35:06 | | |

 

<!DOCTYPE html>
<html>
  <head>
    <title>Paste</title>
    <style type="text/css">
      textarea {width:600px;height:400px;}
    </style>
  </head>
  <body>
    <form name="frm">
    <textarea id="teks" onChange="onc()" onPaste="onp()"></textarea>
    </form>
    <script>
      function onc(){alert(document.frm.teks.value);}
      function onp(){setTimeout(function(){alert(document.frm.teks.value);},100);}
    </script>
  </body>
</html>