Methods to invoke remote scripts
===

**Scenario**

A page invokes a remote script available at this url: `http://url.to.script/myScript?ScriptParamsList`. Let's assume that:

 - Async execution is not required.
 - Displaying output is not required.
 - The script is called on a button click event. Let Handler() be the javascript event handler:

    `
    function Handler()
    {
      //invoke the remote script
    }
    `

Several methods are available to implement Handler() function:

 - **script vs img tag**:

`document.write('<script src="http://url.to.script/myScript?ScriptParamsList" type="text/javascript"></script>');`

`document.write('<img src="http://url.to.script/myScript?ScriptParamsList" />');`

 
 - **jQuery .html() vs .load()**:

`$('#TargetDiv').html('<img src="http://url.to.script/myScript?ScriptParamsList" />');`

`$('#TargetDiv').load('http://url.to.script/myScript?ScriptParamsList');`


**Question**

Which are the advantages and the disadvantages?