English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML - Referenzhandbuch

HTML - Liste aller Tags

HTML: <command> disabled Eigenschaft

Dieser Artikel beschreibt die Verwendung der HTML command disabled Eigenschaft, zeigt Online-Beispiele, wie man die Eigenschaft verwendet, die Kompatibilität des Browsers, die Syntaxdefinition und detaillierte Informationen über die Eigenschaftswerte.

 HTML <command> Tag

Online-Beispiel

Ein deaktivierter <command> - Element:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Verwendung der HTML <command> disabled Eigenschaft-Grund教程(oldtoolbag.com)</title>
<script>
function setAlign()
{
    alert("Einige JavaScript...");
}
</script>
</head>
<body>
<menu>
<command type="radio" label="Links" onclick="setAlign(&"39;left')">Links</command>
<command type="radio" label="Mitte" disabled onclick="setAlign(&"39;center')">Mitte</command>
<command type="radio" label="Rechts" onclick="setAlign(&"39;right')">Rechts</command>
</menu>
<p><b>Hinweis:</b> Internet Explorer 9 Supports the disabled attribute.</p>
</body>
</html>
Test to see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

Currently, almost all mainstream browsers do not support the disabled attribute.

Note:Internet Explorer 9 supported the disabled attribute (only IE9 supported, neither previous nor later versions support it).

Definition and Usage

The disabled attribute is a boolean attribute.

The disabled attribute specifies that the command element should be disabled.

HTML 4.01 with HTML5differences

<command> Tag is HTML5 with new tags.

Differences between HTML and XHTML

In XHTML, attribute shorthand is prohibited, the disabled attribute must be defined as <command disabled="disabled">.

Syntax

<command disabled>

 HTML <command> Tag