AccessKey只能响应Alt+字母,
所以这个只能用JS代码来实现了吧?
这个JS代码怎么写?
大侠帮忙!
------解决方案--------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN ">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<SCRIPT LANGUAGE= "JavaScript ">
<!--
function CHECKKEY(){
if (event.keyCode == 13 && event.ctrlKey)
{
alert( 'i can catch it! ');
}
}
//-->
</SCRIPT>
</HEAD>
<BODY ONKEYDOWN= "CHECKKEY() ">
</BODY>
</HTML>
------解决方案--------------------------------------------------------
<!--
function CHECKKEY(){
if (event.keyCode == 13 && event.ctrlKey||event.ctrlKey&&event.keyCode == 13 )
{
alert( 'i can catch it! ');
}
}
//-->