I have a standard HTML form that has one keyword input box with a button. I am inserting the following into the input box and clicking submit:
<IMG """><SCRIPT>alert("XSS")</SCRIPT>
I recieve a message from my browser saying "XSS" and the form remains to be messed up unless I refresh the webpage.
Can someone help me with a few lines of javascript that will prevent this from happening? I am trying to prevent any form of script to be entered in the form input box and causing funny things to happen. Only text keywords are allowed.
Thank You.
<IMG """><SCRIPT>alert("XSS")</SCRIPT>
I recieve a message from my browser saying "XSS" and the form remains to be messed up unless I refresh the webpage.
Can someone help me with a few lines of javascript that will prevent this from happening? I am trying to prevent any form of script to be entered in the form input box and causing funny things to happen. Only text keywords are allowed.
Thank You.