WorkerLocation: href プロパティ
        
        
          
                Baseline
                
                  Widely available
                
                
              
        
        
        
          
                
              
                
              
                
              
        
        
      
      This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
href は WorkerLocation オブジェクトのプロパティで、ワーカーの位置のシリアライズされた URL の入った文字列を返します。
値
文字列です。
例
js
// https://developer.mozilla.org/ja/docs/Web のページにあるウェブワーカーにて
const result = location.href; // 'https://developer.mozilla.org/ja/docs/Web' を返す
仕様書
| Specification | 
|---|
| HTML> # dom-workerlocation-href> | 
ブラウザーの互換性
Loading…
関連情報
- 所属先の WorkerLocation