Operasi relational
<HTML>
<HEAD>
<TITLE>Contoh Program Javascript</TITLE>
</HEAD>
<SCRIPT language="Javascript">
function test () {
val1=window.prompt("Nilai I :")
val2=window.prompt("Nilai II :")
document.write("<br>"+"val1==val2"+"<br>")
document.write(val1==val2)
document.write("<br>"+"val1!=val2"+"<br>")
document.write(val1!=val2)
document.write("<br>"+"val1>val2"+"<br>")
document.write(val1>val2)
document.write("<br>"+"val1<val2"+"<br>")
document.write(val1<val2) }
</SCRIPT>
<BODY>
<input type="button" name="button1" value="relational"
onclick=test()>
</BODY>
</HTML>
Page Load
maaf ni,,,, apakah drubaw735 pernah mengunjungi zokufo.blogspot.com???
BalasHapussoalnya setelah saya telusuri, blog saya banyak dapaet pengunjung dari artikelnya sini,,,,