The following is the example code
Select your language:
The above code can be invoked by:-
A Document Object Model Cross Site Scripting attack can be accomplished by sending the below link to a possible victim.
The impact include:-
This vulnerability can be fixed by:-