add.html
<html>
<head>
<title>Click </title>
<script>
function myfunction(){
document.getElementById('add')
.innerHTML=2+3;
}
</script>
</head>
<body>
<p id="add">2+3</p>
<button type="button" onclick="myfunction()">ADD</button>
</table>
</body>
Run example »OUTPUT
2+3
No comments:
Post a Comment