Ok cool, thanks for that - so I picked up some bits and slightly modified them, this is what I ended up with for the javascript
<script language="JavaScript" type="text/javascript">
<!--
var isShift=null;
var isNN = (navigator.appName.indexOf("Netscape")!=-1);
var OP = (navigator.appName.indexOf("Opera")!=-1);
if(OP)isNN=true;
var key;
function shift(event)
{
key = (isNN) ? event.which : event.keyCode;
if (key==16)isShift=1;
}
function process(event)
{
key = (isNN) ? event.which : event.keyCode;
if(document.layers&&event.modifiers==4)
{
isShift=1;
}
if (key==13&&isShift!=1)
{
document.sendmessage.submit();
}
if (key!=16)isShift=null;
}
//-->
</script>
Then I have my text area defined as follows
<textarea name="message" onkeypress="process(event)" onkeydown="shift(event)" cols="75" rows="3"></textarea>
This however does nothing when I hit submit except for the standard text area function... Any idea's where this has gone wrong?
The error the browser is reporting is related to this part of the java script
document.sendmessage.submit();
sendmessage is the name of my form - its saying that this object does not support this property or method.