Created
January 11, 2020 10:57
-
-
Save nwtgck/b38321b22419d444a302ce9ce801d360 to your computer and use it in GitHub Desktop.
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
<input id="myinput"> | |
<script> | |
const r = Math.random(); | |
window.myinput.value = r; | |
console.log(r); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Data URI version:
data:text/html,%3Cinput%20id%3D%22myinput%22%3E%0A%3Cscript%3E%0Aconst%20r%20%3D%20Math.random()%3B%0Awindow.myinput.value%20%3D%20r%3B%0Aconsole.log(r)%3B%0A%3C%2Fscript%3E