Javascript only
How do I make an javascript only?
What is a javascript only? How do you make a javascript only? This script and codes were developed by Nugroho Indra Utomo on 17 October 2022, Monday.
Javascript only - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>javascript only</title>
</head>
<body> <script>
function berubah(){ document.getElementById("change").innerHTML = "berubah demostration";
}
function berubahlagi(){ document.getElementById("change").innerHTML ="berubah lagi Y";
}
</script>
<p> jam berapa ya sekarang??<p>
<button type="button" id="datebutton" onClick="myDate()">click to see date!!!</button>
<script> function myDate(){ document.write(Date()); }
</script>
Percobaan memakai JavaScript:<BR>
<script language = "JavaScript">
<!-- document.write("Selamat Mencoba JavaScript<BR>"); document.write("Semoga sukses!");
//-->
</script>
<script type="text/javascript">
<!-- var nama = prompt("Siapa nama Anda?","Masukkan nama anda"); document.write("Hai, " + nama);
// prompt script -->
</script>
<SCRIPT language="Javascript">
function pesan(){
alert ("memanggil javascript lewat body onload")
}
</SCRIPT>
<BODY onload=pesan()> <script language="javascript">
<!-- var nilai = prompt("Nilai (0-100): ", 0); var hasil = ""; if (nilai >= 60) hasil = "Lulus"; else hasil = "Tidak Lulus"; document.write("Hasil: " + hasil);
//-->
</script> <p>please input number between 1-10</p>
<input id="number" type="text">
<button type="button" id="check" onClick="checknumber()">submit</button>
<p id="summary"></p>
<script>
function checknumber(){ var angka, angkamasukan; angka = document.getElementById("number").value; if (isNaN(angka) || angka < 1|| angka >10){ angkamasukan = "input salah silahkan masukan antara angka 1 sampai 10"; } else{ angkamasukan = "input OK"; } document.getElementById("summary").innerHTML = angkamasukan;
}
</script> <script language="Javascript">
function test () {
var val1=document.kirim.T1.value
if (val1%2==0)
document.kirim.T2.value="bilangan genap"
else
document.kirim.T2.value="bilangan ganjil"
}
</script>
<body>
<form method="POST" name="kirim">
<p>BIL <input type="text" name="T1" size="20">
MERUPAKAN BIL <input type="text" name="T2" size="20">
</p>
<p><input type="button" value="TEBAK" name="B1" onclick=test()>
</p>
</form>
</body>
</html>
Developer | Nugroho Indra Utomo |
Username | indra_z85 |
Uploaded | October 17, 2022 |
Rating | 3 |
Size | 2,016 Kb |
Views | 26,312 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Template | 2,323 Kb |
Parents | 3,676 Kb |
Club t | 8,583 Kb |
Js form | 1,753 Kb |
Javascript only | 2,016 Kb |
Task | 5,383 Kb |
Javascript2 | 1,997 Kb |
A Pen by nugroho indra utomo | 7,925 Kb |
Jquery effect | 2,139 Kb |
Responsive2 | 7,059 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Mario | Takaneichinose | 3,902 Kb |
Multicolumns 2 | Raphaelgoetter | 1,857 Kb |
Simple blog concept | Drew_mc | 2,666 Kb |
Filtre ile Arama Kutusu - Search Box with Filter | AyhanALTINOK | 3,448 Kb |
Horizontal scroll fixed element | HerrSerker | 0 Kb |
Welcome | Nakome | 6,076 Kb |
Login with flip 3d animation | Mariusbalaj | 3,014 Kb |
GrcJS | Vino6 | 2,047 Kb |
A Pen by Alexandru Pora | Axpro | 1,615 Kb |
Display properties | Hamzaerbay | 1,886 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!