Jump to content

Change?


eduard

Recommended Posts

<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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...