Adds a JSON-P script to the page to be executed once the script has been retrieved.

This function is valid in v2.3.0 to v2.12.0. This function has been downloaded 9 times.


{string} url
URL of the JSON-P script without the callback parameter provided.
{Function} callback
Function to be called by the JSON-P script.
{string=} opt_callbackParamName Optional, Default:"callback"
Name of the parameter that will be passed the callback function's name.


The script element that is added to the page.

Required Function

This function requires the following function which is included automatically:

  • has()
    Every object descended from Object inherits the hasOwnProperty method. This method can be used to determine whether an object has the specified property as a direct property of that object; unlike the in operator, this method does not check down the object's prototype chain.