pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://developer.mozilla.org/zh-TW/docs/Web/HTML/Reference/Elements/noscript

sizes="32x32" href="https://developer.mozilla.org/favicon.ico" />

此頁面由社群從英文翻譯而來。了解更多並加入 MDN Web Docs 社群。

View in English Always switch to English

<noscript>

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月.

HTML <noscript> 元素定義了一個 HTML 區塊,如果網頁上的腳本類型不支援或瀏覽器當前已關閉腳本,則將插入該區塊。

內容類型 後設資料內容, 流內容, 段落型內容
允許內容 當腳本被禁用時,並且該元素是 <head> 元素的子元素時:可以包括零個或多個 <link> 元素、零個或多個 <style> 元素,以及零個或多個 <meta> 元素,它們的順序可以是任意的。
當腳本被禁用時,並且該元素不是 <head> 元素的後代時:可以包括任何 透明內容,但不得包含 <noscript> 元素在其後代中。
否則:可以包括流內容或段落型內
標籤省略 不允許,開始和結束標籤都是必須的。
允許的父元素 如果不存在祖元素 <noscript>,或者在 <head> 元素中(但僅適用於 HTML 文件),同樣如果不存在 <noscript> 祖元素,則接受任何段落型內容的元素。
隱含的 ARIA 角色 沒有對應的角色
允許的 ARIA 角色 沒有允許的 role
DOM 介面 HTMLElement

屬性

這個元素屬性含有全域屬性

範例

html
<noscript>
  <!-- anchor linking to external file -->
  <a href="https://www.mozilla.org/">External Link</a>
</noscript>
<p>Rocks!</p>

腳本成功執行的結果

Rocks!

腳本執行失敗的成果

External Link

Rocks!

規範

Specification
HTML
# the-noscript-element

瀏覽器相容性

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy