eduard Posted September 5, 2011 Share Posted September 5, 2011 <html><body><h1>My First Web Page</h1><p id="demo">This is a paragraph.</p><script type="text/javascript">document.getElementById("demo").innerHTML=Date();</script></body></htmThe change in this html document is that: ´This is a paragraph´ is replaced by: ´the date and time´? Link to comment Share on other sites More sharing options...
Ingolme Posted September 5, 2011 Share Posted September 5, 2011 That's correct, it is replaced by the date and time of the moment the script was executed. Link to comment Share on other sites More sharing options...
eduard Posted September 5, 2011 Author Share Posted September 5, 2011 That's correct, it is replaced by the date and time of the moment the script was executed.Thanks! (sorry, it was explained later in the tutorial) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.