<!DOCTYPE html>
<html>
<body>
<button onclick="MyMessage();">کلیک کنید</button>
<h2 id="Result"></h2>
<script>
function MyMessage(){
document.getElementById("Result").innerHTML = "Salam Khobi?";
}
</script>
</body>
</html>