cookie property

String get cookie

Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.

Can be set, to add a new cookie to the element's set of HTTP cookies.

If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.

MDN Reference

Implementation

_i2.String get cookie => _i4.getProperty(
      this,
      'cookie',
    );
set cookie (String value)

Implementation

set cookie(_i2.String value) {
  _i4.setProperty(
    this,
    'cookie',
    value,
  );
}