Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title> primer4 </title>
- <script type="text/javascript">
- function Tabela(){
- a = document.getElementById("a").value;
- b = document.getElementById("b").value;
- c = document.getElementById("c").value;
- if (a == "" || b == "" || c == "")
- {
- alert("Nekompletni podatoci!!!")
- return;
- }
- ia = parseInt(a)
- ib = parseInt(b)
- ic = parseInt(c)
- if (((ia + ib) > ic) && ((ia + ic) > ib) && (ib + ic) > ia)
- alert("Moze da se konstruira triagolnik")
- else
- alert("Nemoze da se konstruira triagolnik")
- alert(ia + ", " + ib + ", " + ic);
- var row = document.getElementById("myRow");
- row.insertCell(0).innerHTML += a;
- row.insertCell(1).innerHTML += b;
- row.insertCell(2).innerHTML += c;
- j.innerHTML=("Prijaven vo: "+h+":"+m+":"+s);
- }
- </script>
- </head>
- <body>
- <div>A:</div>
- <input id="a"></input>
- <div>B:</div>
- <input id="b"></input>
- <div>C:</div>
- <input id="c"></input>
- <br>
- <button onclick="Tabela()"> DODADI </button>
- <button onclick="window.location.replace('http://www.math.com');"> Pomos </button>
- <p id="paragraf"> </p>
- <table border="1">
- <tr id="myRow"> </tr>
- </table><br>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment