destination property

Contains the destination of the request.

This property is read-only.

Syntax

JavaScript
dest = object.destination

 

Property values

Type: RequestDestination

A DOMString that represents the request's destination.

Standards information

Remarks

The possible values of destination are:

  • ""
  • "document"
  • "sharedworker"
  • "subresource"
  • "unknown"
  • "worker"

The value of destination is an empty string by default.

See also

Request