JavaScript KeyUp Oryginalny element SRC

function getCurrentElement() {
   if (window.getSelection){
        return window.getSelection().anchorNode.parentNode;
   }
   return false;
}
Friendly Hawk