HTML-DOM Umgebung Protokolleigenschaft
Definition und Verwendung
Protokoll-Eigenschaft legt ein oder gibt den Protokollteil von href Attributwerte.
Grammatik
areaObject.protocol=protocol
Browser-Unterstützung
Alle gängigen Browser unterstützen Protokolleigenschaft
Beispiele
Beispiele
Das folgende Beispiel gibt "Venus" Bereich Vereinbarung:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>本教程(w3big.com)</title>
</head>
<body>
<img src="planets.gif" width="145" height="126" usemap="#planetmap">
<map name="planetmap">
<area id="venus" shape="circle" coords="124,58,8" alt="Venus" href="venus.htm">
</map>
<p>金星区域的 protocol:
<script>
document.write(document.getElementById('venus').protocol);
</script>
</p>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>本教程(w3big.com)</title>
</head>
<body>
<img src="planets.gif" width="145" height="126" usemap="#planetmap">
<map name="planetmap">
<area id="venus" shape="circle" coords="124,58,8" alt="Venus" href="venus.htm">
</map>
<p>金星区域的 protocol:
<script>
document.write(document.getElementById('venus').protocol);
</script>
</p>
</body>
</html>
Beispiele für die obigen Ausgangs:
Venus Protokollbereich: http:
Versuchen »
Die Umgebung Objekte