请问如何监控到irame页面刷新了,比如右击刷新

RT.谢了先.

示例xx.html
[code="java"]
请问如何监控到irame页面刷新了,比如右击刷新:

xx

document.frames('frame1').onload =function(){alert('iframe页面刷新了'));

[/code]


要等页面加载完了再绑定
[code="html"]

$(function(){ document.getElementById('frame1').onload =function(){alert('xxxxxxxx页面刷新了')}; })

cccc




[/code]

你的代码 不就可以了吗

一刷新就加载ONLOAD事件了