hashtgerd2
جمعه 14 خرداد 1395, 20:02 عصر
سلام
می خوام وقتی دکمه رو میزنم یک نوشته ظاهر بشه
ولی تابع اصلا اون خط کد رو اجرا نمی کنه
<html>
<head>
<title>
session 3
</title>
<style type="text/css">
.y{
width: 200px ; height: 50px ;
font-size: 25px ; background-color: #a0f ;
}
</style>
</head>
<body>
<script type="text/javascript">
function aaa(){
<div id="d"> امتحان نزدیک است </div>
}
</script>
<button onclick="aaa()"> نمایش </button>
</body>
</html>
می خوام وقتی دکمه رو میزنم یک نوشته ظاهر بشه
ولی تابع اصلا اون خط کد رو اجرا نمی کنه
<html>
<head>
<title>
session 3
</title>
<style type="text/css">
.y{
width: 200px ; height: 50px ;
font-size: 25px ; background-color: #a0f ;
}
</style>
</head>
<body>
<script type="text/javascript">
function aaa(){
<div id="d"> امتحان نزدیک است </div>
}
</script>
<button onclick="aaa()"> نمایش </button>
</body>
</html>