javascript - document.getElementById doesnt seem to work -


I am trying to execute it but can not see any result:

  & Lt; Script & gt; Function init () {document.getElementById ('welcome'). InnerHTML = "& lt; font color = white> gt; log in as:" + param + ""; } Window.onload = init; & Lt; / Script & gt; & Lt; Body & gt; ........... & lt; Div class = "span-24 bottom_header" id = "welcome" & gt; & Lt; / Div & gt; ........... & lt; / Body & gt;  

What's wrong here ..........

This self-contained example works perfectly for me in Firefox and IE7:

   

You are adding white-on-white text, remember ...


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -