Is it possible to check if a file was not included properly?
For example, I am using appendChild to insert a CSS document into the HEAD of my HTML
document. I tested it with a non-existent CSS file, but no errors are thrown. For
example:
if (appendChild('css_doc.css'))
{
alert('OK');
}
else
{
alert('Not OK');
}
css_doc.css does not exist, but the alert fires 'OK' either way. (I also tried it with a
try/catch, but it also does not throw an error.)
Thanks.
-Lost