Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.body.innerHTML="";
- var t=document.createElement("input");t.type="text";t.style.width="500px";document.body.appendChild(t);
- var p=document.createElement("pre");document.body.appendChild(p);
- t.oninput=function(){p.innerText='<img src="'+t.value+'" alt="" width="100%"/>' }
- //t.onpaste=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement