Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <p id="a">Podaj liczby z ktorych chcesz uzyskac przedzial:</p>
- <input type="text" id="pierwsza"/>Pierwsza liczba</br>
- <input type="text" id="druga"/>Druga liczba</br>
- <input type="radio" name="dzialanie" id="dod">Dodawanie<br>
- <input type="radio" name="dzialanie" id="ode">Odejmowanie<br>
- <input type="radio" name="dzialanie" id="mno">Mnożenie<br>
- <input type="radio" name="dzialanie" id="dzi">Dzielenie<br>
- <button id="b">Oblicz</button>
- <script>
- var b=document.getElementById("b");
- var pierwsza=document.getElementById('pierwsza');
- var druga=document.getElementById('druga');
- b.onclick=funkcja;
- function funkcja()
- {
- var pierwsza=document.write('pierwsza');
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement