Skip to content

Commit

Permalink
Pressing button causes font styles to change.
Browse files Browse the repository at this point in the history
  • Loading branch information
atom-box committed Jul 25, 2019
1 parent 332ae76 commit dafa17d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions button-to-change.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
<script type="text/javascript">
el1 = document.getElementById('text');
function press(){
var s = el1.innerHTML;
s += '---Mouse on Mars';
el1.innerHTML = s;
text.style.fontSize = "14pt";
text.style.fontFamily = "Comic Sans MS";
text.style.color = "green";
}
</script>
</body>
Expand Down

0 comments on commit dafa17d

Please sign in to comment.