ToxicBytez ToxicBytez - 1 year ago 61
Javascript Question

JQuery wont load in any browser then Safari

So I was trying a little loading bar but JQuery doesnt load when I try in FireFox & Chrome, it only loads on Safari.
this is my code:

<title>Mijn eerste spel</title>
<link href="opmaak.css" rel="stylesheet" type="text/css">
<script src=""></script>
<script src="code.js"></script>
<div id="knop">
<div id="textknop">Gooi Steen</div>
<div id="laadbalk"></div>
<h1 id="money">$0</h1>

and my jq code is:


So well in Safari it gives the popup but any other browser just ignores my code.

Answer Source

Very simple, just change Document to document in javascript code.