<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>