Refresh Part of a Page


Is there a way to refresh or redraw part of a screen display using HTML and JavaScript without using frames? I want the top 1/4 of my screen to display constant information and have the bottom 3/4 of the screen be the user-input section, which will refresh or reset the input boxes when all of the displayed boxes have been filled in.


If you’re trying to alter part of a page, you can do this by creating positioned DIV blocks in the area you want to alter, and using a combination of document.write for Netscape Navigator and innerHTML for Internet Explorer.

For Netscape, you can do something such as:




and for IE:

layername.innerHTML = "



For both, the contents of this block are replaced:


Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: