My application opens in an iframe..
 $(window).scroll(function() { alert("scroll is");});   
if i run this code without iframe it works but with iframe it does not work
My application opens in an iframe..
 $(window).scroll(function() { alert("scroll is");});   
if i run this code without iframe it works but with iframe it does not work
 
    
     
    
    The following is the content of an HTML file I include in an iFrame, the Javascript gets called correctly. Perhaps compare it to what you have written.
<html>
  <head>
    <title>Test iFrame</title>
    <!-- Add Some Space to Simulate Content (not needed) -->
    <style>
       body {
           width: 100vh;
           height: 100vh;
       }
    </style>
  </head>
  <body>
    <p>iFrame content goes here</p>
    <script type="text/javascript" src="jquery-3.1.1.min.js"></script>
    <script>
      // wait for jQuery to load
      $(document).ready(function() {
          $(window).scroll(function() {
              alert("scroll is");
          });
      });
    </script>
  </body>
</html>
