24 ways to impress your friends

Jump to menu

Vote down?

HeroreV

If you’re going to use an image element, why not set the script as the value of an onerror attribute? It doesn’t require an additional HTTP request.

[img src="" onerror="script">