P
Paul Gorodyansky
Hi,
Could not find the answer neither in FAQs not on the Web...
On many javaScript 'tips' sites they say that do warn the user
regarding missing .JS file one should do the following:
<html>
<head>
....
<script src="ABC.js" ...>
alert("Error! Included JS file not found ...");
</script>
</head>
....
But it does NOT work neither in my IE 6 nor in my Mozilla 1.6 -
no alert when the .JS file does not exist.
http://www.htmlhelp.com/reference/html40/special/script.html
says,
"When the SRC attribute is used, the embedded script is ignored."
which does not touch the case when .JS not found
(or does it? Ignored _always_?)
So how to tell the user that .JS to be included was not found?
--
Regards,
Paul
http://KBD.da.ru - was possible to develop only because
of the great article at
http://www.faqts.com/knowledge_base/view.phtml/aid/1661
Could not find the answer neither in FAQs not on the Web...
On many javaScript 'tips' sites they say that do warn the user
regarding missing .JS file one should do the following:
<html>
<head>
....
<script src="ABC.js" ...>
alert("Error! Included JS file not found ...");
</script>
</head>
....
But it does NOT work neither in my IE 6 nor in my Mozilla 1.6 -
no alert when the .JS file does not exist.
http://www.htmlhelp.com/reference/html40/special/script.html
says,
"When the SRC attribute is used, the embedded script is ignored."
which does not touch the case when .JS not found
(or does it? Ignored _always_?)
So how to tell the user that .JS to be included was not found?
--
Regards,
Paul
http://KBD.da.ru - was possible to develop only because
of the great article at
http://www.faqts.com/knowledge_base/view.phtml/aid/1661