WorkerLocation: search プロパティ
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月.
search は WorkerLocation オブジェクトのプロパティで、このワーカーの位置の検索文字列 (search) 部分を返します。
値
文字列です。
例
js
// https://big.rakal.top/ja/docs/Web?t=67 のページにあるウェブワーカーにて
const result = location.search; // Returns:'?t=67'
仕様書
| Specification |
|---|
| HTML> # dom-workerlocation-search> |
ブラウザーの互換性
Loading…
関連情報
- 所属先の
WorkerLocation