I'm trying to make a calculator on my website so i'm using HTML & Javascript . I added some buttons and when i click it changes the number and it's not adding it after the last element.
Here's what it looks like :

As you can see it just replaces the number.
Here's my code :
function onClick(num) {
document.getElementById('number').innerHTML = num;
}
<div>
<p>Enter number(s) :
<a id="number"></a>
</p>
<div>
<button type="button" onclick="onClick(7)">7</button>
<button type="button" onclick="onClick(8)">8</button>
<button type="button" onclick="onClick(9)">9</button>
</div>
<div>
<button type="button" onclick="onClick(4)">4</button>
<button type="button" onclick="onClick(5)">5</button>
<button type="button" onclick="onClick(6)">6</button>
</div>
<div>
<button type="button" onclick="onClick(1)">1</button>
<button type="button" onclick="onClick(2)">2</button>
<button type="button" onclick="onClick(3)">3</button>
</div>
<div>
<button type="button" onclick="onClick('=')">=</button>
<button type="button" onclick="onClick(0)">0</button>
<button type="button" onclick="onClick('.')">.</button>
</div>
</div>
Oh and i'm not asking any code i'm just asking for a little hint on how to do what i want. And yes i've been looking on the internet but i didn't find what i wanted.
Thanks !