Javascript 1
Script :
<HTML>
<HEAD>
<TITLE>Contoh Program Javascript</TITLE>
</HEAD>
<BODY>
<SCRIPT language="Javascript">
<!--
alert("Hallo !");
// -->
</SCRIPT>
</BODY>
</HTML>
Hasil :
Script :
<HTML>
<HEAD>
<TITLE>Properti defaultStatus</TITLE>
</HEAD>
<BODY>
<H1>Tes defaultStatus</H1>
<SCRIPT LANGUAGE = "JavaScript">
<!--
window.defaultStatus = "Selamat belajar JavaScript" ;
//-->
</SCRIPT>
</BODY>
</HTML>
Hasil :
Script :
<HTML>
<HEAD>
<TITLE>Skrip Javascript</TITLE>
</HEAD>
<BODY>
<SCRIPT language="Javascript">
<!--
document.write("Selamat Mencoba JavaScript <BR>"):
document.write("Semoga Sukses !");
// -->
</SCRIPT>
</BODY>
</HTML>
Hasil :
Script :
<HTML>
<HEAD>
<TITLE>Kejadian</TITLE>
</HEAD>
<BODY>
<H1>Tes Kejadian</H1>
<P>Cobalah meletakkan penunjuk mouse ke link berikut
dan perhatikan isi baris status.
Kemudian pindahkan penunjuk mouse dari
link berikut dan perhatikan isi baris status
</P>
<A HREF = "www.fujitsu.com"
onMouseOver = "window.status =
'Anda menyorot link, lho';
return true"
onMouseOut = "window.status = '';
return true">Fujitsu</A>
</BODY>
</HTML>
Hasil :
0 komentar :
Posting Komentar