aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/window/stop/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/window/stop/index.html')
-rw-r--r--files/zh-cn/web/api/window/stop/index.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/window/stop/index.html b/files/zh-cn/web/api/window/stop/index.html
new file mode 100644
index 0000000000..dc65485d75
--- /dev/null
+++ b/files/zh-cn/web/api/window/stop/index.html
@@ -0,0 +1,52 @@
+---
+title: Window.stop()
+slug: Web/API/Window/stop
+tags:
+ - API
+ - DOM
+ - Window
+ - 参考
+ - 方法
+translation_of: Web/API/Window/stop
+---
+<div> {{APIRef}}</div>
+
+<p><strong><code>window.stop()</code></strong> 方法的效果相当于点击了浏览器的停止按钮。由于脚本的加载顺序,该方法不能阻止已经包含在加载中的文档,但是它能够阻止图片、新窗口、和一些会延迟加载的对象的加载。</p>
+
+<h2 id="语法">语法</h2>
+
+<pre class="syntaxbox">window.stop()
+</pre>
+
+<h2 id="示例">示例</h2>
+
+<pre class="brush:js">window.stop();
+</pre>
+
+<h2 id="规范">规范</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML WHATWG','browsers.html#dom-window-stop','Window.stop()')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML5 W3C', 'browsers.html#dom-window-stop', 'Window.stop')}}</td>
+ <td>{{Spec2('HTML5 W3C')}}</td>
+ <td></td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+
+
+<p>{{Compat("api.Window.stop")}}</p>