I have a javascript clock for my history website. It's supposed to remind everyone that history is now... or whatever
Right now I'm writing the clock variable, strClock, to a text box.
The text box is causing validation problems, and anyone without javascript just sees an empty text box sitting there. I'd prefer to replace it with a CSS styled div.Code:document.ClockForm.ClockBox.value=strClock; dateDate=setTimeout("ecClock()",1000);
Can I do this? And what's the syntax? I'm guessing it has something to do with innerHtml, but I've never gotten a working script to write/remove/replace anything on a webpage that way. I'm hoping there are some trick in that direction that apply to this situation. I want something more standards compliant and more accessible.







Fortunately for me!

Bookmarks