Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How to write messages to the screen without using "document.write()"?
How to write messages to the screen without using "document.write()"?
✍: Guest
Changing the contents of an element is a much better solution.
When the method showStatus is invoked, it will change the content of the span.
...
function showStatus(message) {
var element = document.getElementById("mystatus");
element.textContent = message; //for Firefox
element.innerHTML = message; //for IE
return true;
}
...
<span id="mystatus">Test. </span>
...
2011-02-15, 4617👍, 0💬
Popular Posts:
How can method defined in multiple base classes with same name be invoked from derived class simulta...
Explain in detail the fundamental of connection pooling? When a connection is opened first time a co...
What’s the difference between Unit testing, Assembly testing and Regression testing? Unit testing is...
How To Decrement Dates by 1? - MySQL FAQs - Introduction to SQL Date and Time Handling If you have a...
What is shadowing ? When two elements in a program have same name, one of them can hide and shadow t...