alejandro52 Posted May 28, 2007 Share Posted May 28, 2007 How do i send some text in a layer with javascript?I want to display the date infront of an image I been trying this code but it doesn't seems to work <script type="text/javascript"> var d = new Date(); document.all["Layer1"].innerHTML = d; </script> and <div id="Layer1"></div> Quote Link to comment Share on other sites More sharing options...
emehrkay Posted May 29, 2007 Share Posted May 29, 2007 document.all["Layer1"].innerHTML = d; to document.getElementById("Layer1").innerHTML = d; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.