Mega Code Archive

 
Categories / JavaScript DHTML / HTML
 

Specifies the binding of meta content to an HTTP response header

<html> <meta id="myMeta"> <head> <script language="JavaScript"> function function1() {    document.all.myMeta.httpEquiv = "refresh";    document.all.myMeta.content = 3;  }  </script> </head> <body> <input type="button" value="Refresh this page every 3 seconds." onClick="function1();"> </body> </html>