loading...

Discussion on: This Image Is Also a Valid Javascript File

Collapse
sebastianstamm profile image
Sebastian Stamm Author

My goal was not to execute code from an img tag, my goal was to create a file that is both an image and a script. Using the same file, the browser shows it as image in an img tag (without executing any Javascript), and executes the Javascript in a script tag (without showing any image).

Collapse
lookrain profile image
Lu Yu

Ah i see. Very interesting and informative article!