was meinste du mit header ?
meta angaben nein, den titel der seite ansich auchnet.
2. document.getElementsByTagName("body")[0].style.backgroundColor = "#neue farbe"
sollte richtg sein<br /><br /><html><br /><br /> <head><br /> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"><br /> <title>JS body test</title><br /> <style><br /> body{<br /> background-color: #c0c0c0;<br /> <br /> }<br /> <br /> </style><br /> <script><br /> <br /> function changeBG(){<br /> document.getElementsByTagName("body")[0].style.backgroundColor = "#cc0000";<br /> }<br /> <br /> <br /> </script><br /> </head><br /><br /> <body><br /> <p><a href="javascript:;" onclick="changeBG()">KLICK</a></p><br /> </body><br /><br /></html><br />
It looks like you're new here. If you want to get involved, click one of these buttons!