Do you like this story?
<html>
<head><title>Belajar JavaScript Bagian 1</title></head>
<body>
<b>Bagian pertama ini di tulis dengan HTML!</b>
<p>
<SCRIPT language="JavaScript">
<!--
document.write ("Bagian ini di tulis dengan JavaScript!");
//-->
</SCRIPT>
<p>
<b>Bagian terakhir dari dokumen HTML, ditulis setelah script!</b>
</body>
</html>Contoh 2:
<html>
<head><title>Belajar JavaScript Bagian 1</title></head>
<body>
<body bgcolor="#ebf185">
<SCRIPT language="JavaScript">
<!--
document.writeln("<pre>");
document.write ("<b><font size=5>");
document.writeln("SELAMAT BELAJAR JAVASCRIPT");
document.write ("</b></font>");
document.write ("<i>");
document.writeln("Program ini adalah contoh sederhanan menampilkan teks");
document.write ("</i>");
document.writeln("Dengan JavaScript........!!!");
//-->
</SCRIPT>
</body>
</html>
document.writeln("<center>");
document.writeln("<hr width=600 color=black>");
document.writeln("<h1>INTERNET TRIK AND TUTORIAL</h1>");
document.writeln("<h2>Sharing dan berbagi ilmu di dunia Internet</h2>");
document.writeln("<h3>http://trik-tutorials.blogspot.com</h3>");
document.writeln("<hr width=600 color=black>");
document.writeln("</center>");
<html>
<head><title>Belajar JavaScript Bagian 1</title></head>
<body>
<b><font color="3081dc" >Ini contoh penulisan JavaScript yang diambil dari file lain..!!</font></b>
<p>
<SCRIPT language="JavaScript" SRC="file.js"></SCRIPT>
</body>
</html>



