Minggu, Desember 18, 2011

Javascript lanjutan

<html >
<head>
<title>Untitled Document</title>
<script language="javascript">
var name=prompt("what is your name?", "");
document.write("<br>Welcome to my world!" + name +"<br>");
var age=prompt("Tell me your age.","Age");
if(age == null){
alert("not sharing your age with me");
}
else{
alert(age + " is young");
}
alert(prompt("where do you live?", ""));
</script></head>
<body></body>
</html>


hasilnya :

0 komentar:

Posting Komentar