<!DOCTYPE html> | |
<style> | |
body { | |
margin: 0; | |
} | |
</style> | |
<script> | |
function notifyParent(message) { | |
parent.postMessage(message, '*'); | |
} | |
</script> | |
<object data="greenSquare.svg" type="image/svg+xml" width="100" height="200" | |
onload="notifyParent('load')" onerror="notifyParent('error')"> | |
FAIL | |
</object> |