框架页中按F5只刷新某一子页面
<frameset rows="*" cols="100,*" framespacing="0" frameborder="NO" border="0" onkeydown="if(event.keyCode==116) { mainFrame.location.reload();event.returnValue=false; }">
<frame src="page1.htm" name="leftFrame" scrolling="NO" noresize>
<frame src="page2.htm" name="mainFrame">
</frameset>
<frame src="page1.htm" name="leftFrame" scrolling="NO" noresize>
<frame src="page2.htm" name="mainFrame">
</frameset>
关键部分在这里:
onkeydown="if(event.keyCode==116) { mainFrame.location.reload();event.returnValue=false; }