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> Link to comment https://forums.phpfreaks.com/topic/53285-write-in-a-layer-with-javascript/ 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; Link to comment https://forums.phpfreaks.com/topic/53285-write-in-a-layer-with-javascript/#findComment-263955 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.