<\/script>')

Javascript: Why can't I access the "../ .." directory in a browser on mac

The client JS program includes the following lines:

<script src='../../LIBS/jwlib.js'></script>
<script src ='../js/header.js'></script>
<script src ='../js/session.js'></script>
<script src ='../js/classes.js'></script>
<script src ='../js/main.js'></script>

It works correctly in any browser under Windows. But on my iMac, it fails because it cannot find the function defined in jwlib. And jwlib is not found in Chrome Developer Tools.

What will go wrong?

The program itself is located at http://www.johnwheater.net/JAVASCRIPT/MULTIBODY/html/main.html

Thanks, Hugues and Chetan, for your interest. When loading, we should see a canvas with two squares, one blue and one black. The blue color should contain a set of numbers from 1 to 50 and a BEGIN button. When you press this button, the numbers should begin to pour.

iMac, Chrome Devtools get_random_integer(). 366 main.js, .

jwlib.js, .

, main.js. MULTIBODY2, MULTIBODY, . .

+4
2

.

, , window.onload() , .

, , , Mac Windows.

+3

init(), . onload().

js , , .

, , , onload body, .

,

<body onload = init()>

OSX Windows. , .

0

Source: https://habr.com/ru/post/1679423/


All Articles