hostname property

String get hostname

Returns the Location object's URL's host.

Can be set, to navigate to the same URL with a changed host.

MDN Reference

Implementation

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

Implementation

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