Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 9th, 2013  |  syntax: None  |  size: 0.24 KB  |  views: 36  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. img = document.createElement("IMG");
  2. img.src = "image.png";
  3.        
  4. img = document.createElement("IMG");
  5. img.src = chrome.extension.getURL('image.png');
  6.        
  7. img = document.createElement("IMG");
  8. img.src = window.location.origin + "/image.png";
clone this paste RAW Paste Data