A4E
ok so i got this chatbox code (is a very basic one, am learning to use HTML codes etc.) it's this one
<font color=#8B0000><html><head><title>TV Shows Discussion Chatbox!</title></font>
<script language="javascript">
<!--
function copyStuff(){
var source = document.getElementById( "message" );
var target = document.getElementById( "messagebox" );
target.value= source.value;
source.value="";
}
//-->
</script>
</head>
<body bgcolor=000000>
<center>
<font size=5 color=red>Chatbox</font>
<form name="form2" method="post" action="" >
<textarea name="textarea" cols="50%" rows="15%" id='messagebox' /></textarea>
</form>
<center>
<font color="#FF0000">Message</font>
<input name="textarea2" type="text" value="" id='message' onblur="copyStuff()" />
</p>
</center>
</body></html>
ok? but after i post a mesage then i change to another minimized page and when i come back the message i wrote is gone!! why??
and also what codes will i need so that before u can chat u have to put a nickname?? and smiliez and stuff!! thanks!!
<font color=#8B0000><html><head><title>TV Shows Discussion Chatbox!</title></font>
<script language="javascript">
<!--
function copyStuff(){
var source = document.getElementById( "message" );
var target = document.getElementById( "messagebox" );
target.value= source.value;
source.value="";
}
//-->
</script>
</head>
<body bgcolor=000000>
<center>
<font size=5 color=red>Chatbox</font>
<form name="form2" method="post" action="" >
<textarea name="textarea" cols="50%" rows="15%" id='messagebox' /></textarea>
</form>
<center>
<font color="#FF0000">Message</font>
<input name="textarea2" type="text" value="" id='message' onblur="copyStuff()" />
</p>
</center>
</body></html>
ok? but after i post a mesage then i change to another minimized page and when i come back the message i wrote is gone!! why??
and also what codes will i need so that before u can chat u have to put a nickname?? and smiliez and stuff!! thanks!!