dcsimg
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Cross Browser Issues
Expertise: Beginner
Oct 20, 1999

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Refresh Part of a Page

Question:

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.

Answer:

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:

document.layername.document.write("

new

"); document.layername.document.close();

and for IE:

layername.innerHTML = "

new

";

For both, the contents of this block are replaced:

old

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date