api.Location.origin

Spec

MDN URL

Status

On the standards track: Yes

Is Experimental: No

Is Deprecated: No

Browser Support

In Chrome version 8 on 2010-12-02

In Chrome Android version 18 on 2012-06-27

In Deno version 1.7 on 2021-01-19

In Edge version 12 on 2015-07-29

In Firefox version 21 on 2013-05-14 Note: Before Firefox 49, results for URL using the blob scheme incorrectly returned null.

In Firefox for Android version 21 on 2013-05-14 Note: Before Firefox for Android 49, results for URL using the blob scheme incorrectly returned null.

In Internet Explorer version 11 on 2013-10-17 Note: Intranet sites are set to Compatibility View, which will emulate IE7 and omit window.location.origin.

In Quest Browser version 5.0 on undefined

In Opera version 15 on 2013-07-02

In Opera Android version 14 on 2013-05-21

In Safari version 5.1 on 2011-07-20

In Safari on iOS version 5 on 2011-10-12

In Samsung Internet version 1.0 on 2013-04-27

In WebView Android version 3 on 2011-02-22

In WebView on iOS version 5 on 2011-10-12