V
V
Vasily Vasilyev2017-09-18 22:09:42
webstorm
Vasily Vasilyev, 2017-09-18 22:09:42

"window is not defined" in the included js script. How to get rid of the error in the IDE?

I connect the script to the html page: Everything works, but the IDE swears
window.onload = function () {...}

window is not defined at script.js:1:0

The page works fine, I want to get rid of the error in the IDE.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question