title: add script src inside javascript function
body: <p>In a project when I add update panel in master page, then my jquery effects in a different page don't work even though I added the js script src in master page. When I googled for this problem, I found one solution which is below</p>
  
  <pre><code>function EndRequestHandler(){        
  //document.write("&lt;script type='text/javascript' src='js/Blood_preesure.js'&gt;")
  }
  </code></pre>
  
  <p>and then </p>
  
  <pre><code>function load(){
  Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
  }
  </code></pre>
  
  <p>and call this function at body onload</p>
  
  <pre><code>&lt;body onload="load()"&gt;
  </code></pre>
  
  <ol>
  <li>In my EndRequestHandler() function I want to call script src. 
  I tried it with document.write but after postback the whole page is blank and displays nothing. </li>
  <li>When I add full function which is in my js file, then everything works, but I don't want to inline the code since it is considered good practice to externalise code.</li>
  </ol>