I am relatively new to javascript and I created a function to multiply two numbers together, but document.write replaces the whole page with the answer. I know
You already know how to use document.getElementById() to retrieve the values of inputs on your page. So do something similar to update an element that holds the answer: