<script>
document.onkeydown=mytest;
function mytest()
{
if(event.keyCode==116){
window.location.href="test.htm";
window.event.keyCode=0;
return false;
}
}
</script>
document.onkeydown=mytest;
function mytest()
{
if(event.keyCode==116){
window.location.href="test.htm";
window.event.keyCode=0;
return false;
}
}
</script>
加上:
<input type="button name="refresh" value="刷新" onclick="location.href xxx.htm">
{
document.location = "xxxx.htm";
}
{
document.location = "xxxx.htm";
}