Skip to content

Commit

Permalink
Create tocode.html (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wipupat-Chomthaworn authored Oct 27, 2022
1 parent eef0795 commit d462be2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions HTML/tocode.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body{
padding: 1%;
}
</style>
</head>
<body>
<h1 id="h">Coffee</h1>
<button onclick="tocode()">To Code</button>
<script>
function tocode(){
document.getElementById("h").innerHTML="Code";
}
</script>
</body>
</html>

0 comments on commit d462be2

Please sign in to comment.