Adding click event handler to iframe
iframe doesn’t have onclick event but we can implement this by using iframe’s onload event and javascript like this… function iframeclick() { document.getElementById(“theiframe”).contentWindow.document.body.onclick = function() { document.getElementById(“theiframe”).contentWindow.location.reload(); } } <iframe id=”theiframe” src=”https://stackoverflow.com/questions/6452502/youriframe.html” style=”width: 100px; height: 100px;” onload=”iframeclick()”></iframe> I hope it will helpful to you….