Hi,
Add the following code on after the line
text118.innerHTML = "Get Data";
text118.onclick = function () {
document.getElementsByClassName("tbox2")[0].value = document.getElementsByClassName("tbox1")[0].value;
};
we have to assign onclick function for each button
Thanks