Is it possible in Javascript to check is a file exists first.. then load the .js file.. if not... show an alternate message like : Content not available at this time.... or Server down.. ect.
so if the server you are calling the javascript include happens to go offline... people do not see the error:
<script language="JavaScript" src="
Perhaps I could wrap the function with an If statement and say onError... had trouble.
What would I say to check it though?
Thanks for any help!
David David McIntosh
Have a nice day!
so if the server you are calling the javascript include happens to go offline... people do not see the error:
<script language="JavaScript" src="
Perhaps I could wrap the function with an If statement and say onError... had trouble.
What would I say to check it though?
Thanks for any help!
David David McIntosh
Have a nice day!