What event to use when copying the mouse?

There is such code
<input type="text" placeholder="Enter coupon" class="kupp" onkeyup="javascript:document.getElementById('line4').value = this.value;">

Essentially the code does take from one form to another when typing with the keyboard.
If the text entered from the keyboard, when it sends all the sent
and if the text inserted by copy-paste and then pressed send, not sent.
I think the onKeyUp event to add another event to copy-paste with the mouse. Tell me how.
June 5th 19 at 21:00
1 answer
June 5th 19 at 21:02
Solution
Use the oninput event
So?
<input type="text" placeholder="Enter coupon" class="kupp" onkeyup="javascript:document.getElementById('line4').value = this.value;" oninput="javascript:document.getElementById('line4').value = this.value;">
- Nedra3 commented on June 5th 19 at 21:05
Yes. But why are you writing javascript ? Will work without it. And XHTML in 2010 died, so write /> is not necessary, just write ">". The name of the attributes it is better to write in lower case, just onkeyup. - peggie_Aufderh commented on June 5th 19 at 21:08

Find more questions by tags JavaScript