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
Post a Comment