Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style type="text/css">
- #boton{
- width: 50px;
- height: 30px;
- display: block;
- margin:30px;
- }
- img{
- width: 300px;
- height: 200px;
- margin:30px;
- }
- </style>
- <script type="text/javascript">
- var boton = document.getElementById('boton');
- boton.onclick = function(){
- var imagen = document.getElementById('foto');
- imagen.style.display ='none';
- }
- </script>
- </head>
- <body>
- <button id="boton">Click</button>
- <img src="header.jpg" id="foto">
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement