Created
October 9, 2018 12:14
-
-
Save arysandi/21656f85467f9dc74db73cdb71b20cfb to your computer and use it in GitHub Desktop.
script 1 kolom login page mikrotik
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
<!-- Additional Script --> | |
<script type="text/javascript"> | |
var input1 = document.getElementById('username'); | |
var input2 = document.getElementById('password'); | |
var updateInputs = function () { | |
input2.value = input1.value; | |
} | |
if (input1.addEventListener) { | |
input1.addEventListener('keyup', function () { | |
updateInputs(); | |
}); | |
} else if (input1.attachEvent) { // support IE | |
input1.attachEvent('onkeyup', function () { | |
updateInputs(); | |
}); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment