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

HTML Referenzhandbuch

Vollständiges HTML-Tag-Verzeichnis

HTML: <command> radiogroup-Eigenschaft

Dieser Artikel beschreibt die Verwendung der HTML command radiogroup-Eigenschaft, zeigt Beispiele zur Verwendung, Kompatibilität des Browsers, Syntaxdefinition und detaillierte Informationen zu seinen Eigenschaftswerten.

 HTML <command> Tag

Online-Beispiel

Ein <command> Element, das zu einer radiogroup gehört:

<!DOCTYPE html>
<html>
<kopf>
<meta charset="utf-8">
<titel>Verwendung der HTML <command> radiogroup-Eigenschaft-Grund教程(oldtoolbag.com)</titel>
<skript>
function setAlign()
{
    alert("Einige JavaScript....");
}
</skript>
</kopf>
<body>
<menu>
<command type="radio" label="Links" radiogroup="Ausrichtung" onclick="setAlign(&"39;left')">Links</command>
<command type="radio" label="Mitte" radiogroup="Ausrichtung" onclick="setAlign(&"39;center')">Mitte</command>
<command type="radio" label="Recht" radiogroup="Ausrichtung" onclick="setAlign(&"39;right')">Recht</command>
</menu>
<p><b>Attention:</b>Currently, almost all mainstream browsers do not support the radiogroup attribute.</p>
</body>
</html>
Test See ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

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

Definition and Usage

The radiogroup attribute specifies the name of the command group, which will be toggled when the command is activated or switched.

Note:This attribute can only be used for common commands of type "radio", i.e., it is only available when type="radio".

HTML 4.01 and HTML5difference between

<command> Tag is an HTML5 in the new tag.

Syntax

<command radiogroup="groupname">

Attribute Value

ValueDescription
groupnameSpecify the name of the command group that will be toggled when the command is activated or switched (only applicable for type="radio").
 HTML <command> Tag