Jumat, 20 April 2012
Objek Input Javascript (form) [ Aplikasi IT Part II ] pertemuan ke-3.1
<html>
<head>
<title> Belajar JavaScript </title>
</head>
<body>
<script language = "JavaScript" src = "isi.js"> </script>
</body>
</html>
document.writeln ("<center>");
document.writeln ("<hr width = 600 color = black>");
document.writeln ("<h1> UNIVERSITAS KOMPUTER INDONESIA </h1>");
document.writeln ("<h2> FAKULTAS TEKNIK dan ILMU KOMPUTER </h2>");
document.writeln ("<h3> JURUSAN TEKNIK INFORMATIKA </h3>");
document.writeln ("<hr width = 600 color = black>");
document.writeln ("</center>");
d<html>
<head>
<title> Objek Text </title>
</head>
<body>
<script languange ="JavaScript">
<!--
function objektext()
{
var namastr = (document.fform.nama.value);
var kotastr = (document.fform.kota.value);
document.fform.znama.value = namastr;
document.fform.zkota.value = kotastr;
}
//-->
</script>
<form name ="fform">
<h3> Input </h3>
<p> Nama Lengkap : <input type = "text" size = "11" name = "nama"> </p>
<p> Kota asal : <input type = "text" size = "25" name = "kota"> </p>
<BR>
<input type = "button" value = "kirim" onclick = "objektext()">
<input type = "reset" value = "ulang">
<hr>
<H3> Output </H3>
<p> Nama Anda adalah : <input type = "text" size = "11" name = "znama"> </p>
<p> Anda berasal dari : <input type = "text" size = "25" name = "zkota"> </p>
</form>
</body>
</html>
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar