Cara Mengambil Nilai Input Menggunakan GetElementsByName di JavaScript
var username = document.getElementsByName("username")[0].value;
Cute Capuchin
var username = document.getElementsByName("username")[0].value;