Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.onload=function(){
- alert('Functioneaza')
- var x=document.getElementById("test")
- x.onclick=function()
- {
- var i=document.createElement("img")
- i.src="riverdale2.png"
- i.style.borderStyle="solid"
- document.body.appendChild(i);
- i.onclick=function()
- {i.remove()
- alert("Ai sters imaginea")
- }
- }
- var y=document.getElementById("test2")
- y.onclick=function()
- {
- y.style.backgroundColor="red"
- var h=document.createElement("H1");
- var t= document.createTextNode("Buna");
- h.appendChild(t);
- document.body.appendChild(h);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement