r4hgozar
چهارشنبه 25 اردیبهشت 1392, 10:59 صبح
سلام دوستان من تازه اولین روزیه که جاوا رو شروع کردم.
طبق مثال این دستورم درسته اما اجرا نمی شه.
میشه بگین کجاش اشتباهه؟؟ ممنون
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="javascript" type="text/javascript" >
function show_prom(){
var name=prom ("enter your name","your name");
if (name!= null && name!="")
{
document.write("hello"+name+"your");
}
}
</script>
</head>
<body>
<input type="button" onclick="show_prom()" value="test" />
</body>
</html>
طبق مثال این دستورم درسته اما اجرا نمی شه.
میشه بگین کجاش اشتباهه؟؟ ممنون
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="javascript" type="text/javascript" >
function show_prom(){
var name=prom ("enter your name","your name");
if (name!= null && name!="")
{
document.write("hello"+name+"your");
}
}
</script>
</head>
<body>
<input type="button" onclick="show_prom()" value="test" />
</body>
</html>