I have attached 2 Javascript files into my html. when i attached the second, the first one stopped working. (when i detach the second, the first file is working fine)
i think the reason is that both of those javascript files contain
window.onload=function() {
// do stuff
}
is there a reason for something like that? i work it out?
the attaching on the html file look like this:
<!DOCTYPE html>
<html>
<head>
<script src="CyclingImage.js"></script>
<script src="blackbar.js"></script>
</head>
<body>
//stuff
</body>