HTML <script> türü Özellik
Örnek
Belirtilen tür özniteliğine sahip bir komut dosyası:
<script type="application/javascript">
document.getElementById("demo").innerHTML = "Hello JavaScript!";
</script>
Tanım ve Kullanım
Öznitelik , type
komut dosyasının türünü belirtir.
Nitelik , ve etiketleri type
arasındaki içeriği tanımlar .
<script>
</script>
Tarayıcı Desteği
Attribute | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
<script type="scripttype">
Özellik Değerleri
Value | Description |
---|---|
scripttype | Specifies the type of the script. Some common values:
Look at IANA Media Types for a complete list of standard media types. |
❮ HTML <script> etiketi