Hello.
Basically I am making a chat script.
At the moment I have an onkeypress event which calls a Javascript function, and changes the Inner HTML of a div to say "Writing....".
Problem is this only works for the user actually writing. All the other users in the chat have no idea that you are writing. How would I display "User X is writing... " on the screens of the other users?
Small point (I am new to this). I have:
document.getElementById("state").innerHTML = "Writing....";
The username is stored in +document.chatform.guestname.value+
What is the correct way of outputting "Name, Writing...." because
document.getElementById("state").innerHTML = "+document.chatform.guestname.value+ Writing....";
returns errors.
Thanks for all the help.



Reply With Quote

Bookmarks