I am trying to insert a string into a textbox using the JavaScript code below:
document.querySelector('textarea').value = '0a06282c0241057a10011805220d080510bea3f493062a03010c1628f1a6f493063002382b4001481482010f383634333233303532343736343839';
1- In the first scenario: After running the above code, clicking on the submit button does not yield any result because the oninput
event is not enabled.
Result 1 shows as empty and does not work:
https://i.sstatic.net/RdvlF.png
2- In the second scenario: After executing the code, adding one (or more) spaces to the textbox before clicking the submit button results in success because the oninput
event gets activated.
https://i.sstatic.net/vnHnD.png
How can I activate the oninput
event using JavaScript?
Note 1: I do not own the website and do not have access to backend code to change or find the oninput
function for direct calling.
Note 2: I am running the JavaScript code in the browser console.