I am trying to change the width of a bar when I click on the button; but it's not working. I have tried copying the code, replacing the ids and rewriting the code, but I don't know why it's not working.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8,IE=9" />
<title>Page Title</title>
<script type="text/javascript">
var bar = document.getElementById("Bar");
function load(){
bar.style.width = "500px;";
}
</script>
<link rel="stylesheet" type"text/css" href="Style.css">
</head>
<body>
<div id="mainwrapper">
Citadel goal
<div id="Shell">
<div id="Bar"></div>
</div>
<form><input type="button" value ="click" onclick="load();"/></form>
</div>
</body>
</html>