Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <head>
- <meta charset="UTF-8" />
- <title>05</title>
- </head>
- <body>
- <ol>
- <li><a href="poletroj.html">Pole trójkąta</a></li>
- <li><a href="obwod.html">Obwód</a></li>
- <li><a href="poleprost.html">Pole prostokąta</a></li>
- </ol>
- </body>
- </html>
- <!DOCTYPE html>
- <head>
- <meta charset="UTF-8" />
- <title>05</title>
- </head>
- <body>
- <script>
- function licz(formularz) {
- if(formularz.a.value==""|formularz.b.value=="")
- alert("Wprowadź dane");
- else{
- a=formularz.a.value;
- b=formularz.b.value;
- formularz.p.value=a*b;
- }
- }
- </script>
- <form name="formularz">
- Podaj bok a: <input type="text" name="a"><br><br>
- Podaj bok b: <input type="text" name="b"><br><br>
- <input type="button" value="Oblicz" onClick="licz(this.form)"><br><br>
- Wynik:<br><br>
- Pole prostokąta: <input type="text" name="p"><br><br>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement