PDA

View Full Version : replacing text dynamically


Akky
01-07-2003, 11:32 AM
:rolleyes:

Hi I want to replace the text at a particular position in the page. I had seen it done but am not sure how it is. Lets say the name of the user is known and you need to say Hi <userName>. what sort of tag I need to use to replace the text here, Any help is highly appreciated

Regards

Akky

joeframbach
01-07-2003, 01:08 PM
<A id=username></A>


document.getElementById("username").innerHTML="Hi, "+username;

Akky
01-07-2003, 01:15 PM
Tanx Boss,
Perfect Solution