Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Dummy file</title>
- <!-- CSS stilizavimas -->
- <style>
- #mygtukas {
- border-style: solid;
- border-color: #000000;
- border-width: 1px;
- background: #FFFFFF;
- color: #000000;
- }
- </style>
- <!-- Interaktyvumas -->
- <script>
- window.addEventListener('load', function () {
- var text = document.getElementById("inputas");
- document.getElementById("mygtukas").addEventListener('click', function () {
- alert(text.value);
- });
- });
- </script>
- </head>
- <body>
- <button id="mygtukas">Paspausk mane</button>
- <input type="text" id="inputas" value="">
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement