SHARE
TWEET

index.js

a guest Jan 19th, 2020 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var path= "./public/img/a.gif";
  2.  
  3. var img=document.createElement('img');
  4. img.setAttribute("src",path);
  5. img.setAttribute("width","550");
  6. img.setAttribute("height","309");
  7.  
  8. function imprimir() {
  9.     document.getElementById("content").appendChild(img);
  10.     document.getElementById("texto").innerHTML = "asd";
  11. }
  12.  
  13. imprimir();
  14.  
  15. function ocultar(){
  16.     document.getElementById("content").style.display="none";
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top