[thelist] Is it possible to output a JavaScript variable dire ctly to the body content after the page has been loaded?
Pearson, John
JOHN.PEARSON at eia.doe.gov
Mon Jan 5 15:53:47 CST 2004
sure but what would trigger the action? This example updates a <td></td> with
id=ncount when a particular text box loses focus.
onblur="document.getElementById('ncount').innerText='(The wording is only:
'+this.value.length+' characters so far!)'"
<!--receiver for the length-->
<td width="300" id="ncount" style="color: #CC3300; font-size: x-small;">( 0
characters)</font></td>
This works in IE6, getting it to work under any other circumstances would be the
challenge.
| -----Original Message-----
| From: SED [mailto:sed at sed.is]
| Sent: Monday, January 05, 2004 12:42 PM
| To: thelist at lists.evolt.org
| Subject: [thelist] Is it possible to output a JavaScript variable
| directly to the body content after the page has been loaded?
|
|
| I want to output a message, based on a user choose via a
| form menu, directly
| to the body content (i.e. between the <p></p>), but I
| haven't found any way
| to do it. I know I can do it through alert and <input>. But if I use
| document.write('message') the message won't update, after
| the page was first
| loaded.
|
| So my question is: Is it possible to output a JavaScript
| variable directly
| to the body content after the page has been loaded?
|
| Thanks,
| SED
|
| --
| * * Please support the community that supports you. * *
| http://evolt.org/help_support_evolt/
|
| For unsubscribe and other options, including the Tip Harvester
| and archives of thelist go to: http://lists.evolt.org
| Workers of the Web, evolt !
|
More information about the thelist
mailing list