<html>
<label for="input1">Input 1:</label>
<input type="text" id="input1"> <br/><br/>
<label for="input2">Input 2:</label>
<input type="text" id="input2"> <br/><br/>
<button onclick="swapValues()">Swap Values</button>
<script>
function swapValues()
{
let input1 = document.getElementById("input1");
let input2 = document.getElementById("input2");
let temp = input1.value;
input1.value = input2.value;
input2.value = temp;
}
</script>
</html>