가능한 중복 :
How to add click event to a iframe with JQuery클릭 이벤트가 iframe에서 작동하지 않습니까?
내 iframe 대응에 클릭 이벤트를 추가하려고하지만 작동하지 않는 것?
코드 :
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$('#iframe_id').bind('click', function (event) { alert('hi'); });
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<iframe id="iframe_id" src="http://www.google.com"></iframe>
</div>
</form>
</body>
</html>
클릭 이벤트가 iframe을 자신이 아닌 부모 창 노드에 의해 캡처 도움이되기를 바랍니다. 따라서 '
http://stackoverflow.com/questions/7170698/track-clicks-inside-iframe-with-jquery – tekknolagi
http://stackoverflow.com/questions/6803251/jquery-click-tracking-not-working-on-iframe – tekknolagi