ctrl+enterでテストを送ります。
431 ワード
<script>
function sendtest()
{
if(event.ctrlKey&&event.keyCode==13)
{
location.href="http://126.com";
}
}
</script>
<textarea name="comment" id="comment" cols="105" rows="10"tabindex="4" onkeydown="sendtest();"> </textarea>