This commit is contained in:
aldo 2025-11-24 13:39:16 +07:00
parent 35acd385b5
commit 1ebe791f95
4 changed files with 0 additions and 37 deletions

Binary file not shown.

View File

@ -1,2 +0,0 @@
halo
<h1> haii </h1>

View File

View File

@ -1,35 +0,0 @@
<html>
<head>
<script>
function tampilkan()
{
var nama = document.getElementById("nama").values;
var umur = document.getElementById("umur").value;
document.write(nama);
var Hobi = document.getElementByName("hobi");
for (let i=0;i<Hobi.length;i++)
{
if (Hobi(i).hasAttribute("checked")==true)
document.write(Hobi[1].value);
}
}
</script>
</head>
<body>
<form method="GET" action="hal.html">
Nama : <input type="text" name="nama" id="nama"><br>
Umur : <input type="number" name="umur" id="umur"><br>
Alamat: <input type="text"><br>
Hobi : <input type="checkbox" name="Hobi" value="Baca">Baca
<input type="checkbox" name="Hobi" value="Makan">Makan
<input type="checkbox" name="Hobi" value="Tidur">Tidur
<br><input type="submit" value="kirim dengan GET-Submit">
<h1>Hello world</h1>
<h1>Hello world</h1>
<!--<input type="button" value="kirim dengan GET-Button" onclick="window.location.href='hal2.html'">-->
<input type="button" value="kirim dengan GET-Button" onclick="tampilkan()">
</form>
</body>
</html>