From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/window/find/index.html | 80 +++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 files/ja/web/api/window/find/index.html (limited to 'files/ja/web/api/window/find') diff --git a/files/ja/web/api/window/find/index.html b/files/ja/web/api/window/find/index.html new file mode 100644 index 0000000000..ad99bebbf7 --- /dev/null +++ b/files/ja/web/api/window/find/index.html @@ -0,0 +1,80 @@ +--- +title: window.find +slug: Web/API/Window/find +tags: + - API + - DOM + - DOM_0 + - Gecko + - Non-standard + - Window +translation_of: Web/API/Window/find +--- +
{{ApiRef}}
+ +
+

{{Non-standard_header}}

+
+ +
{{noteStart}} window.find() のサポートは、Gecko の将来のバージョンで変更される可能性があります(※参照 : {{Bug("672395")}}) {{noteEnd}}
+ +

概要

+ +

ウィンドウ内の文字列を検索します。

+ +

構文

+ +
window.find(aString, aCaseSensitive, aBackwards, aWrapAround,
+            aWholeWord, aSearchInFrames);
+ +
+
aString
+
検索するテキスト文字列
+
aCaseSensitive
+
真偽値。 true の場合、大文字と小文字を区別して検索します。
+
aBackwards
+
真偽値。 true の場合、後方検索を行います。
+
aWrapAround
+
真偽値。 true の場合、折り返し検索を行います。
+
aWholeWord {{unimplemented_inline}}
+
真偽値。 true の場合、完全一致検索を行います({{bug("481513")}})
+
aSearchInFrames
+
真偽値。 true の場合、フレーム内の検索を行います。
+
+ +

戻り値

+ +

真偽値。

+ + + +

+ +

JavaScript

+ +
findString = function findText(text) {
+  alert("String \x22" + text + "\x22 found? " + window.find(text));
+}
+ +

HTML

+ +
<p>Apples, Bananas, and Oranges.</p>
+<button type="button" onClick='findString("Apples")'>Search for Apples</button>
+<button type="button" onClick='findString("Banana")'>Search for Banana</button>
+<button type="button" onClick='findString("Orange")'>Search for Orange</button>
+
+ +

表示結果

+ +

{{EmbedLiveSample('Example')}}

+ +

注記

+ +

Window.find() は、サイト上で発見したコンテンツを選択します。

+ +

仕様

+ +

どの標準にも属しません。

-- cgit v1.2.3-54-g00ecf