Created
December 7, 2019 08:21
-
-
Save dandyraka/244b329af5121f3902d49cfcaa24fbc3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function setText(msg){ | |
var textbox = document.getElementById('message'); | |
textbox.value = msg; | |
var submit = document.getElementById('save'); | |
submit.click(); | |
} | |
function spam(text, loop){ | |
for (var i = 1; i <= loop; i++) { | |
setText(i + '. ' + text); | |
} | |
} | |
spam("Apa bang?", 10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment