I'm trying to make a form that once you paste something it self submit. I have the following code:
<form>
<textarea onpaste=submit></textarea>
</form>
javascript code I've tried:
<form action="./1.php" method="post" id="frm1" name="frm1">
<textarea placeholder="Paste Here" onpaste="document.frm1.submit()"></textarea>
Previous code was not working for some reason.
What javascript code should I use to make it work?