I am learning about XSS (for ethical purposes), and I was wondering how to execute some JavaScript code without using tags. This is within the
HT
You can use the onclick attribute that is presented in HTML elements so you can create something like this:
onclick
"The search term" Click me to see the JavaScript work! "returned no results"
Click me to see the JavaScript work!
Now when clicking on the element the JavaScript will be executed.