JavaScript Reference/Javascript Properties/httpEquiv — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:21, 26 мая 2010
"httpEquiv" Example
<html>
<meta id="myM">
<head>
<script language="JavaScript">
function function1() {
document.all.myM.httpEquiv = "refresh";
document.all.myM.content = 3;
}
</script>
</head>
<body>
<input type="button" value="Refresh this page every 3 seconds." onClick="function1();">
</body>
</html>
"httpEquiv" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<meta> |
+----------------+--------------------------------------------------------------+
"httpEquiv" Syntax and Note
Note:
Read and write property.
Specifies the binding of <meta> content to an HTTP response header.
Syntax:
document.getElementById("metaID").httpEquiv = value
document.all.metaID.httpEquiv = value // IE only