I need to put a button called add. After the user clicks, it should change to added.
<html>
<body>
<script>
function one()
{
document.write("Added");
}
</script>
<input type="button" value="Add" onclick="one()">
</body>
</html>
but this code replaces all the content in my page and says "added" while I need to change only the button text, without any changes in the background.