postURL()

Takes a URL and goes to it using the POST method.

This function is valid in v2.15.0 to v2.22.1. This function has been downloaded 24 times.

Parameters

{string} url
The URL with the GET parameters to go to.
{Array|Object=} opt_data Optional
Data to be passed when posting to the URL. If this is an array, it should be an array of arrays where the inner arrays' first elements are keys and the second elements are values. If this is an object, the keys are interpreted as the keys and the values as values. If the values are some type of object or array they will be JSON stringified.
{string=} opt_target Optional, Default:'_self'
If specified it will be used as the target frame for where to POST to.
{HTMLDocument=} opt_ownerDocument Optional, Default:window.document
If specified it will be the ownerDocument under which the form will be created to POST url to.

Returns

{HTMLFormElement}
The HTML form element that is temporarily to created to post to the specified URL.

Required Functions

This function directly requires the following functions which are included automatically:

  • entries()
    Gets an array of pairs (array of length 2) indicating all of the keys and values within a given array or object.
  • extend()
    Adds extra properties to an object based on the properties owned by other specified objects.