You are here: irt.org | FAQ | JavaScript | Source | Q411 [ previous next ]
Set a variable in the *.js file to true:
<script language="JavaScript"><!-- var loaded = false; //--></script> <script src="library.js"></script>
And then in library.js:
loaded = true;
And then you can check this before invoking any functions stored in library.js:
if (loaded) function_name();