Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Load Javascript dynamically
- if (autonumberlinks) {
- var secondScript = document.createElement('script');
- secondScript.type = 'text/javascript';
- secondScript.src = 'test_hash.js';
- secondScript.onload = function() {
- // code to execute after the second script is loaded and executed
- addHashLabels(); // function of the dynamic loaded file
- };
- document.head.appendChild(secondScript);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement