I completed the game, but I honestly don't know: why wouldn't inject a script tag directly in level 2 work?
The hint for level 3 reads: As before, using ... as a payload won't work because the browser won't execute scripts added after the page has loaded. How do you solve level 3?
This is the URL I used:
https://xss-game.appspot.com/level3/frame#'>alert('bla')
But the hint is hinting at something more like this, I think: https://xss-game.appspot.com/level3/frame#' onerror="alert('bla')">
Can somebody explain why the first one worked? Are they wrong when they say that the browser won't execute scripts added after the page has loaded?