first enter our keyword and if our keyword is reflecting in the html response then it is a reflected xss, if the keyword is reflecting in the dom then it is a dom xss.

search location. in the sources tab to identify the source.

then we need to check the sources for location.search, location.href if these are present in source tab then it is 100% dom xss.

in dom xss we will see the keyword only in dom not in view page source

image.png

Sources: where attacker data enters JS:

Sinks: where data becomes dangerous: