3 ms·
Toying with #name-input and setName() was quite fun; I wish I was there to see this part happen! What `onerror` did you end up using to make it recursive?
by yunruse 2y ago
Toying with #name-input and setName() was quite fun; I wish I was there to see this part happen! What `onerror` did you end up using to make it recursive?
- FranchuFranchu 2y agoThis was the injected JS code: document.getElementById('name-input').value = document.getElementById('yay').outerHTML; setName(); console.log('yay') The `<img>` tag I used was wrapped around a `div` element that had the `yay` id. I used `onload` instead of `onerror`, with an image link from Wikipedia.