How can I locate the correct element using querySelector

In chrome console, i am able to inject a js like below


And then the DIV form will pop up, however, if i change it to below


It will return error: Uncaught TypeError: document.querySelector(…).window is not a function at :1:41

Am I doing wrong in locating an element ? Thanks


You could simply wrap the queryselctor with $


Leave a Reply

Your email address will not be published. Required fields are marked *