I'm trying to get the album names to pop up in alerts. I'm not sure if my problem is the calling of the function in the HTML code or it's the JavaScript code itself.
Here's what i got:
HTML:

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Store</title>
<script src="store.js" type="text/javascript"></script>
<script src="cart.js" type="text/javascript"></script>
</head>
<body>
<h1>Titan Music Store</h1><br>
<a href="index.html">Home</a><br><br>
<form><input type="submit" value="Get Albums" onClick="getAlbums()" id="albums"></form>
</body>

JavaScript:

var album1 {
title:'To the Moon';
artist:'Bruno Mars';
price:'$12.99';
release Date:'1/17/13';
quantity:'4';
var tracks1 = ['Moonshine', 'Natalie', 'Treasure', 'Way You Are'];
}
var album2 {
title:'In Love';
artist:'Robin Thicke';
price:'$12.99';
release Date:'2/24/13';
quantity:'4';
var tracks2 = ['All the Way', 'Lost Without You', 'Tonight', 'Can You Believe'];
}
var album3 {
title:'Karma';
artist:'Alicia Keys';
price:'$12.99';
release Date:'4/7/13';
quantity:'4';
var tracks3 = ['NoOne', 'Fallen', 'Womens Worth','Loved' ];
}

function getAlbums(){
//List all albums

alert (album1.title);
alert (album2.title);
alert (album3.title);
}