ive got a problem, this code only works for the person viewing the page.
[code]
<!– THREE STEPS TO INSTALL TEXTCHAT V1.2:
1. Copy the coding into the HEAD of your HTML document
2. Add the onLoad event handler into the BODY tag
3. Put the last coding into the BODY of your HTML document –>
<!– STEP ONE: Paste this code into the HEAD of your HTML document –>
<HEAD>
<!– This script and many more are available free online at –>
<!– The JavaScript Source!! [url]http://javascript.internet.com[/url] –>
<!– Original: Jericho Mejia (cirej_jem@@yahoo.com) –>
<script language=”JavaScript”>
<!– Jericho Mejia (cirej_jem@@yahoo.com) –>
<!———- copyright 2003 —————–>
<!– Begin
function typeWith() {
Reply = “”;
while ((Reply == “”) || (Reply == “”)){
Reply=prompt (“Enter your chatID:”, “”);}
if (Reply != null){
document.mytype.typein.value = document.mytype.inputext.value;}
else{
Reply = “Unknown User”;}
}
// End –>
</script>
</HEAD>
<!– STEP TWO: Insert the onLoad event handler into your BODY tag –>
<BODY onLoad=”typeWith()”>
<!– STEP THREE: Copy this code into the BODY of your HTML document –>
<form name=”mytype”>
<textarea name=”typein” cols=”72″ rows=”5″ readonly></textarea>
<br><input name=”inputext” type=”text” size=”74″><input type=”button” name=”sendbutton” value=”SEND !” onClick=”document.mytype.typein.value = Reply + ‘: ‘ + document.mytype.inputext.value”><br>
<br><br>
</form>
<p><center>
</a></font>
</center><p>
<!– Script Size: 1.79 KB –>
i want the text inside the box to be viewable to everyone. and when you enter another comment it wont replace it