Get to know MDN better
此頁面由社群從英文翻譯而來。了解更多並加入 MDN Web Docs 社群。
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> 祖元素,則接受任何段落型內容的元素。 |
| 沒有對應的角色 |
| 沒有允許的 role |
| HTMLElement |
這個元素屬性含有全域屬性。
Rocks!
Rocks!
| HTML # the-noscript-element |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年8月6日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.