Heim > Artikel > Web-Frontend > javascript 支持ie和firefox杰奇翻页函数_javascript技巧
function jumpPage() {
var event=document.all?window.event:arguments[0];
if (event.keyCode==37) location=preview_page;
if (event.keyCode==39) location=next_page;
if (event.keyCode==13) location=index_page;
}
document.onkeydown=jumpPage;
-->