Andre FIlipe Andre FIlipe - 4 months ago 5x
HTML Question

External JS not working in my html file?

I'm pretty new to JavaScript, I am trying to execute my external JS to html, what im trying to do is to see if the mouseover responds when my mouse hovers one img.

<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GWW- A Global Warming Warning...</title>

<link href="style.css" rel="stylesheet">
<div class="gridContainer clearfix">
<div class="world">
<img src="poluicao/poluicao0001.png" alt="Mundo">
<div class="botao1">
<img src="poluicao/offbuton.png" alt="but1">
<div class="botao2">
<!--<a href="#" >//-->
<img id="readybotao" src="degelo/offbutton.gif" alt="but2">
<!-- </a> //-->

<script src=""></script>
<script src="javascript.js"</script>



And this is my JS file:

function buttonon() {
alert("If it showed up it worked!");


What am I doing wrong?


you have >missing on the line <script src="javascript.js"</script>