<img src='d' onerror="<script>location.href='/sendmoney?to=dreamhack&amount=1000000'</script>"> 이건 안되는 이유가 뭘까요
그냥 문법 자체가 올바르지 않기 때문입니다.
onerror 이벤트 핸들러 내에는 자바스크립트 코드만이 들어가야 합니다. 즉, <script> 태그를 제거해주셔야 합니다.
<script>