Home > front end >  Use JS to web page input assignment failure
Use JS to web page input assignment failure

Time:11-02

https://mms.pinduoduo.com/login this login page with JS input account and password input box? With the value assignment

CodePudding user response:

Document. QuerySelector (" TAB - item. The last - the item "). Click ();
Document. The getElementById (" usernameId "). The value="https://bbs.csdn.net/topics/aaa";
Document. The getElementById (" passwordId "). The value="https://bbs.csdn.net/topics/1234";

CodePudding user response:

reference 1/f, the sky wave response:
document. QuerySelector (". The TAB - item. The last - the item "). Click ();
Document. The getElementById (" usernameId "). The value="https://bbs.csdn.net/topics/aaa";
Document. The getElementById (" passwordId "). The value="https://bbs.csdn.net/topics/1234";

This method has been tried, cannot use
  • Related