WorkerLocation.hash

The hash property of a WorkerLocation object returns the hash part of the worker’s location.

Syntax

string = object.hash;

Examples

// In a Web worker, on the page https://developer.mozilla.org/en-US/docs/WorkerLocation.hash#example
var result = window.self.hash; // Returns:'#example'

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'WorkerLocation.hash' in that specification.
Living Standard Initial definition.

Browser compatibility

BCD tables only load in the browser

See also