p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

html_code_clinic thread: Change the value of CONTENT property of META Element dynamically


Message #1 by "Irene Medvedev" <iba@p...> on Thu, 14 Sep 2000 19:17:59 +0100
Is CONTENT attribute of the META object can be changed dynamically?
Please, help me to understand why this does not work:

<HTML>
<HEAD>
<META  ID=MyId  http-equiv="refresh" content=50>

<script language="jscript">

function Temp() {
var coll=document.all.tags("META")
coll(0).content=1

//    MyId.setAttribute("content","1");    does not work as well
//    document.all(3).content = 1


}

</script>
</head>
<Body onLoad="Temp()">
Test
</body>
</html>

  Return to Index