Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt

When we you assign ID for HTML entity for <p> tag or <div> tag, we can dynamically update its content. You can find the object by getElementById(), and do the necessary actions into innerHTML. For instance, you can do it like document.getElementById( "element_id").innerHTML = "hello, world!";


Like I mentioned above, the The way of coding is super simple.

...

2) Put necessary action using getElementByIDgetElementById( entity_name ).innerHTML = blah blah...

...