Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with document.write

Status
Not open for further replies.

NJDrew

Technical User
Dec 21, 2001
31
US
Ok, I need help with a line of code which is:

document.writeln("Your score is " + total + "%");

Assuming that total is defined correctly, my problem is that when the line of code is executed it clears the document then writes the result. I need it to write the line but not to clear the document. I thought that it was the method .writeln but this is not working. Any help would be appricated.

P.S. The line of code will be executed after the page is loaded.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top