Introduction
Imagine visiting a website and suddenly seeing unexpected messages or actions that you did not trigger. This happens because attackers can insert harmful code into websites, causing problems for users. Cross-site scripting (XSS) is one way attackers do this by injecting malicious scripts into web pages.