Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title> Listener oraz funkcje strzałkowe</title>
- </head>
- <body>
- <input type="button" value="Wstaw nowy akapit" id="b1">
- <script>
- b1.addEventListener( 'click',function(){
- let akapit=document.createElement('p');
- akapit.innerHTML="Liczba akapitów"+akapit.length;
- document.body.appendChild(akapit)
- } );
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement