Help me about javascript
Web Development
3
Posts
3
Posters
0
Views
1
Watching
-
how to know whether a javascript file was loaded to client. Thank!!!!!!
-
how to know whether a javascript file was loaded to client. Thank!!!!!!
You can create a variable in the javascript file:
var MyNiceJavascriptFileLoaded = true;
Then you can check if the variable exists:if (MyNiceJavascriptFileLoaded)
If the file was not loaded, the value of the variable will be undefined, and evalutes as false. --- b { font-weight: normal; } -
how to know whether a javascript file was loaded to client. Thank!!!!!!