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, 4500👍, 0💬
Popular Posts:
What will be printed as the result of the operation below: main() { int a=0; if (a==0) printf("Cisco...
What will be printed as the result of the operation below: main() { int x=5; printf("%d,%d,%d\n",x,x. ..
What is difference between SITP and UTP in testing ? UTP (Unit Test Plan) are done at smallest unit ...
What will be printed as the result of the operation below: #define swap(a,b) a=a+b;b=a-b;a=a-b; void...
What will be printed as the resultof the operation below: int x; int modifyvalue() { return(x+=10); ...