JavaScript Reference/Javascript Properties/httpEquiv — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:21, 26 мая 2010
"httpEquiv" Example
<source lang="javascript">
<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>
</source>
"httpEquiv" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<meta> | +----------------+--------------------------------------------------------------+
</source>
"httpEquiv" Syntax and Note
<source lang="javascript">
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
</source>