Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamicly updating a page.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How would you dynamicly update a page by amend certain sentences as it scrolls? I've seen textareas that do this but can it be done directly on the page with the possillity of adding the link atribute?
 
in ie you can dynamically update a page using

obj.innerHTML = blah;

where blah is a string and obj is a valis object.
 
If you are only updating the text, and not the HTML inside an element consider using innerText (less memory intensive) of course there are even better ways, if I think of one, I'll let you know... jared@aauser.com
 
<span id=&quot;an_id&quot; onclick=&quot;javascript:this.write('ok this is my new text ... see?')&quot;>your text to b replaced</span>

would work, but i guess it's not cross browser (but it can become so)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top