Today I learned some Javascript and practiced changing text when a button was clicked and also opening windows.
<script>
function changetext() {
document.getElementById("head").innerHTML = "<h1>Ich bin sehr eingebildet -Ace</h1>"
}
function changetext2(){
document.getElementById("head").innerHTML = "<h2>Ich bin nicht eingebildet -Ace</h2>"
}
function clickme() {
Window:open("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
}
function buymethings() {
window:open("https://www.patreon.com/Aceofspadesprogrammer")
}
This is the code I wrote today.
Leave a Reply