![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
SPAN id=errorMessageText></SPAN Then, in a script, you can do this: SCRIPT type="text/javascript" function displayError(errorMessage) { document.getElementById("errorMessageText").innerT ext = errorMessage; } /SCRIPT If you want more formatting than plain text, use innerHTML instead of innerText |
#2
| |||
| |||
|
|
On Tue, 27 Apr 2004 07:16:22 -0400, Brian Genisio BrianGenisio (AT) yahoo (DOT) com> wrote: [snip] SPAN id=errorMessageText></SPAN Then, in a script, you can do this: SCRIPT type="text/javascript" function displayError(errorMessage) { document.getElementById("errorMessageText").innerT ext = errorMessage; } /SCRIPT If you want more formatting than plain text, use innerHTML instead of innerText However, it is important to note that innerText isn't supported by the Mozilla family of browsers (amongst others, no doubt). innerHTML is better supported. Mike |
Yeah, I knew that. My bad.![]() |
| Thread Tools | |
| Display Modes | |
| |