How to access values from your own settings page in javascript?
You need to target the value of the element rather than the content. var kasUser = document.getElementById(“kasUserName”).value; var kasPas = document.getElementById(“kasPsw”).value; You can check the content of your inputs by adding alert(kasUserName); and alert(kasPas);