How can I collect user input using JavaScript for a website that saves the input into a text file?
Below is the code I am currently using:
<button type="button" onclick="storeEmail()">Enter Email</button>
<script>
function storeEmail() {
email = prompt("Please enter your email address. Thank you!");
}
</script>