I am simply trying to get the user name via an html button then append a string to it before submitting the concatenated string to a website. But the string doesn't seem to change
<form action="website.com" method="POST">
<input name="login" id="name" value="username" />
<script>
var str1 = document.getElementsById("name").value;
var str2 = " Goodbye";
document.getElementsById("name").value = str1.concat(str2);
</script>
<button id="button" >press the button</button>