Skip to content

Commit

Permalink
Create index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Potato-constellation authored Jun 4, 2024
1 parent 8ee7ca2 commit a29fa5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
document.getElementById("mysubmit").onclick = function(){
username = document.getElementById("mytext").value;
document.getElementById("myh1").textContent = `Hello ${username}`;
}

0 comments on commit a29fa5b

Please sign in to comment.