Check if the file exists, but prevent a 404 error from appearing in the console.

Is it possible to check if a file / page exists using JavaScript, but prevents a 404 error from appearing in the console?

+76
javascript
Aug 12 '11 at 4:01
source share
1 answer

The answer seems to be: None. It is impossible to avoid a 404 error in the console unless you start calling the server side of the script to verify the existence of the file.

+46
Aug 12 2018-11-11T00:
source share
— -



All Articles