I am simply trying to have this one button implement a function that simply shows the users scores for the game overall. This data is updated in an Access DB each time the user plays the game. I don't know if this is an issue with my SQL queries or with my JavaScript coding. I simply need a popup window to display this information when the user clicks this button. Code is as follows:(Just a portion of the code that's supposed to display the popup window, nothing more.)
<button onclick="showscores()" style=" top: 155px; left: 160px; position: absolute;"> Show scores
var user = "FOO";
var myDB = new ACCESSdb("C:\\Users\\FOO\\Users.mdb", {showErrors:true});
function showscores(){
// select and retrieve the user info data , containing the score data
window.alert(myDB.query("SELECT * FROM userInfo WHERE UserName = 'username'));
}