Advertisement
Guest User

Image On Error

a guest
Apr 4th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. d = document.createElement("div");
  2. d.innerHTML = "<img src='nonexistent://xyzabcd' onerror=\"alert('inside on error');\">";
  3. document.body.appendChild(d);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement