type property

Contains the type of the request.

This property is read-only.

Syntax

JavaScript
type = object.type

 

Property values

Type: RequestType

A DOMString the represents the type of the request.

Standards information

Remarks

The possible values of type are:

  • ""
  • "audio"
  • "font"
  • "image"
  • "script"
  • "track"
  • "video"

See also

Request