Created
November 17, 2017 13:21
-
-
Save istar0me/62300b842ff15a62ed878ba0899727ed to your computer and use it in GitHub Desktop.
test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
<div id="turn"> | |
</div> | |
<button onclick="f1()">click me</button> | |
<script> | |
function f1() { | |
document.getElementById("turn").innerHTML = `It's <span style="color:#FFFFFF">p1</span> 's turn now` | |
} | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment