SOLVED. You just use another getelementbyclassname or insert functions at same getelementbyid.
ex liff.js function initializeApp(data) { // sendMessages call document.getElementById('sendmessagebutton').addEventListener('click', function () { liff.sendMessages([{ type: 'text', text: "Menu Mahasiswa" }]).then(function () { window.alert("Menu telah di buka silahkan tutup halaman web ini"); }).catch(function (error) { window.alert("Error sending message: " + error); }); liff.closeWindow(); }); document.getElementsByClassName('closewindowbutton').addEventListener('click', function () { liff.closeWindow(); }); }
index.html <button class="btn-google m-b-20" id="sendmessagebutton">Menu</button>