aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/window/defaultstatus/index.html
blob: 5cdb276097de1cb8669164d3fd5599df74cb9b21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
title: Window.defaultStatus
slug: Web/API/Window/defaultStatus
tags:
  - API
  - HTML DOM
  - NeedsCompatTable
  - NeedsExample
  - NeedsMarkupWork
  - NeedsSpecTable
  - Deprecated
  - Property
  - Reference
  - Window
translation_of: Web/API/Window/defaultStatus
---
<p>{{APIRef()}}{{deprecated_header}}</p>

<div class="note notebox">
  <p><strong>注:</strong>このメソッドは Firefox 23 以降で削除されました。</p>
</div>

<h2 id="Summary">概要</h2>

<p>与えられたウィンドウのステータスバーのテキストを取得/設定します。</p>

<h2 id="Syntax">構文</h2>

<pre class="eval"><em>var sMsg</em> = window.defaultStatus;
window.defaultStatus = <em>sMsg;</em>
</pre>

<h3 id="Parameters">引数</h3>

<ul>
 <li><code>sMsg</code> は、ステータスバーで既定で表示されるテキストを含む文字列です。</li>
</ul>

<h2 id="Example"></h2>

<pre>&lt;html&gt;
 &lt;body onload="window.defaultStatus='hello!';"/&gt;
  &lt;button onclick="window.confirm('Are you sure you want to quit?');"&gt;confirm&lt;/button&gt;
 &lt;/body&gt;
&lt;/html&gt;
</pre>

<h2 id="Notes"></h2>

<p>一度開いたウィンドウのステータスバーのテキストを設定するには、 {{domxref("window.status")}} を使用してください。</p>

<h2 id="Specifications">仕様書</h2>

<p>HTML5</p>