Untitled
5 years ago in HTML
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function somefunc(event)
{
debugger;
console.log("*************************How do we know if this onbeforeunload trigger point is click in the embeded pdf ********************");
}
</script>
</head>
<body onbeforeunload="somefunc();">
<div>
<iframe style="width: 100%; height: 100%; display: block;" id="documentPreviewPane" name="documentPreviewPane" frameborder="0">
</iframe>
<script> jQuery(document).ready(function () { var url = 'https://drive.google.com/file/d/1hbxDMPuG6CnWox92orJYvvQeTsHAb3uT/view'; jQuery('#documentPreviewPane').attr('src', url); }); </script>
</div>
</body>
</html>