I am supposed to make a DOM based XSS attack what means that I insert a HTML element with javascript code. (for example an <iframe>
)
I have this search box in the html file:
<span id="searchValue" [innerHTML]="searchValue"></span>
What is the [innerHTML]="searchValue"
property does? How can I use this search input to place an element in the HTML code?
I know in javascript you can change the value between the element opening and closing tag with innerHTML, but here I have no idea what it does.
Thanks in advance.