Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head></head>
- <body>
- <script>
- var x1 = 5;
- var x2 = 5;
- </script>
- <form>
- Imie :<br>
- <input type="text" name="im" value="">
- <br>
- Nazwisko :<br>
- <input type="text" name="naz" value="">
- </form>
- <p id="poletekstowe"></p>
- <button onclick="Powitanie()">Oblicz</button>
- <br><br>
- </script>
- <script>
- function Powitanie () {
- var imie1 = document.forms[0].im.value;
- var nazwisko = document.forms[0].naz.value;
- document.getElementById("poletekstowe").innerHTML = "witaj " + imie1 + " " + nazwisko;
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement