CS Fundamentals Trainer · JavaScript · Security

Assigning the string '<script>alert(1)</script>' to an element's innerHTML runs the script.

Assigning the string `'<script>alert(1)</script>'` to an element's `innerHTML` runs the script.

Difficulty: easy

Answer this question

Related questions