Replacing #html Content using #javascript
▻https://hackernoon.com/replacing-html-content-using-javascript-9a3d36c56cc?source=rss----3a8144
While viewing the source code from a number of sites one day, I noticed a large number of elements that contained no data. I started to wander why a web designer would place elements on a web page to display nothing. Then I realized that those empty elements were simple place-holders. Blank areas of the screen that the designer would later manipulate.One very useful ability provided by JavaScript is the ability to replace the content of elements in an existing HTML document that was previously displayed, even empty elements. There are many reasons that a web designer may choose to take advantage of this ability but providing interactive pages is a likely goal.The retrieve HTML form data hub displayed the retrieved data on a new page. Although that method in fact displayed the data, (...)