A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/ja/docs/Web/API/Location/toString below:

location: toString() メソッド - Web API

location: toString() メソッド

Baseline Widely available

toString() は Location インターフェイスの文字列化メソッドであり、URL 全体を文字列で返します。これは Location.href の読み取り専用版です。

構文 引数

なし。

返値

このオブジェクトの URL を表す文字列です。

例
// このコードが https://example.com/path?search#hash で実行されていると想像してください
const result = window.location.toString(); // 返値: 'https://example.com/path?search#hash'
仕様書 ブラウザーの互換性

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4