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>
...
2008-12-23, 4900👍, 0💬
Popular Posts:
What Is the "@SuiteClasses" Annotation? "@SuiteClasses" is a class annotation defined in JUnit 4.4 i...
What is NullPointerException and how to handle it? When an object is not initialized, the default va...
What Articles Have You Read about JUnit? There are a number of JUnit articles that you should read: ...
How To Export Data to an XML File? - Oracle DBA FAQ - Introduction to Oracle SQL Developer If you wa...
How can you enable automatic paging in DataGrid ? Following are the points to be done in order to en...