function go(loc) {
var iframe = document.getElementById("iframe");
iframe.style.display = "block";
document.getElementById('iframe').src = loc;
document.getElementById("p").innerHTML = "";
}
html, body {cursor: url(files/cursor.cur), progress !important;Height:100%;}
html {background-image:url(files/bg.jpg);background-attachment:fixed;background-position:center;background-size:cover;}
body {width:80%;background-color:rgba(255,255,255,0.8);margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;}
p {margin-right:10px;margin-left:10px;}
iframe {overflow: hidden; height: 80%; width: 100%;}
img {display:block;margin-left:auto;margin-right:auto;}
table {border-collapse:collapse; font-family:calibri;border-style: outset;border-color:#FFFF00;border-width:5px;s}
td {font-size:16px;border-width:1px;border-style:solid;border-color:#FFFF00;background-color:#FFFFFF}
th {font-size:18px;font-weight:bold;background-color:#FFEE00;border-color:#FFFF00;border-style:solid;border-width:1px;}
.font1 {font-family:calibri;font-size:16px;}
.font2 {font-family:calibri;font-size:18px;text-decoration:underline;}
#menu1 a {display: block; background-color: #0066FF; text-decoration: none; font-family: calibri; font-size: 20px; color: #FFFFFF; padding: 10px 10px;}
#menu1 a:hover {background-color: #0088FF;}
#menu1 li {display: inline-block;}
#menu1 ul {list-style: none; text-align: center; margin: 0 auto; padding:0px;}
#menu2 a {display: block; background-color: #0066FF; text-decoration: none; font-family: calibri; font-size: 16px; color: #FFFFFF; padding: 10px 10px;}
#menu2 a:hover {background-color: #0088FF;}
#menu2 li {display: inline-block;}
#menu2 ul {list-style: none; text-align: center; margin: 0 auto; padding:0px;}
<!DOCTYPE html>
<html style="height:105%;">
<head>
<title>Foto's</title>
<link rel="icon" type="image" href="files/icon.png">
<link rel="stylesheet" href="style.css">
<script src="files/javascript.js"></script>
</head>
<body>
<br>
<div id="menu1">
<ul>
<li><a href="index.html">Welkom</a></li>
<li><a href="agenda.html">Agenda</a></li>
<li><a href="fotos.html">Foto's</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
<br>
<div id="menu2">
<ul>
<li><a onclick="go('camera/1993-1994.html')">1993-1994</a></li>
<li><a onclick="go('camera/1994-2003.html')">1994-2003</a></li>
<li><a onclick="go('camera/2003-2004.html')">2003-2004</a></li>
<li><a onclick="go('camera/2005-2006.html')">2005-2006</a></li>
<li><a onclick="go('')">2006-2007</a></li>
<li><a onclick="go('')">2007-2008</a></li>
<li><a onclick="go('')">2008-2009</a></li>
<li><a onclick="go('')">2009-2010</a></li>
<li><a onclick="go('')">2010-2011</a></li>
<li><a onclick="go('')">2011-2012</a></li>
<li><a onclick="go('')">2012-2013</a></li>
<li><a onclick="go('')">2013-2014</a></li>
<li><a onclick="go('')">2014-2015</a></li>
</ul>
</div>
<p class="font1" id="p" align="center">Kies een schooljaar om de foto's te zien.</p>
<iframe id="iframe" src="about:blank" frameborder="0"></iframe>
</body>
</html>
I'm trying to make the color of a button lighter when it's clicked without giving eacht button a seperate id. Is there a way to make my javascript find the clicked button so it can change it's color? Also, it should go back to it's original color when no longer active. If there's a solution with html or css, thats fine too.
Thanks.