+ 1
hmm _ why is this input ignoring input.value
So, its' on this website. log in page. on the console, I get the input, then put input.value = "myUser"; and then click sign in, it says "please enter your user name." Even though I just said the input's value is "myUser". But then when I type "myUser", it works. I also tried to do it with a JS injector, and it didn't work. It's like the input doesn't allow anything but you pressing the keyboard.
2 Answers
+ 1
Sorry, but it really is difficult to understand your situation just by imagining. So I suggest you to save the code in SoloLearn and share the saved code link within your thread Description.
See this in case you didn't know đ
https://www.sololearn.com/post/75089/?ref=app
0
@Ipang
So, it's a normal login page in this website.
in the username input, you type "myUser" (your user name), and click login, you are logged in.
But I try to give the input's value through the console.
So, userInput.value = "myUser". and that value displays on the input.
Then I click on login, it clears (deletes) the "myUser" and it says please "enter user name".
It's like the input doesn't take any computer programs like you physically have to press a key to input.
maybe they have a protection or something..