Advertisement
kotvalera83

load script

May 13th, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var myScript = document.createElement('script');
  2. myScript.src = 'http://code.jquery.com/jquery-2.1.4.min.js';
  3. myScript.onload = function() {
  4.   console.log('jQuery loaded.');
  5. };
  6.  
  7. document.body.appendChild(myScript);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement