"TEST: iframe click test"
Bootstrap 3.3.0 Snippet by mrmccormack

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!-- https://paulund.co.uk/smooth-scroll-to-internal-links-with-jquery --> <!-- the iframe and document MUST be on same domain - careful when opening this in bootstrap full frame, change URL --> <div class="container"> <div class="row"> <a href="#services">My Porfolio</a> <p>Bacon ipsum dolor amet drumstick landjaeger shankle meatloaf jowl, spare ribs capicola. Pancetta cow short ribs pig hamburger meatloaf beef ribs bresaola cupim doner pork loin kevin beef corned beef shank. Hamburger cupim drumstick bresaola, salami jowl kielbasa turducken pancetta. Ball tip cupim hamburger landjaeger biltong shankle. Shankle biltong corned beef doner strip steak bacon t-bone swine turkey short loin meatball ribeye turducken pork belly tongue. Short loin shankle turducken alcatra cupim. Bresaola pig pork loin, pork chop ribeye boudin swine sirloin biltong rump corned beef landjaeger meatloaf.</p><p>Turducken ham tongue capicola fatback, chuck pork belly burgdoggen porchetta spare ribs pork chop t-bone. T-bone brisket kevin, ham pork loin landjaeger strip steak tri-tip pastrami tongue hamburger. Capicola pancetta andouille short loin frankfurter, landjaeger meatball flank cupim kevin tail pastrami. Kielbasa kevin short ribs ribeye pork chop ham. Filet mignon shank tri-tip bacon.</p> <br><br><br><br><br><br><br><br><br> <div id="services"><h2>My Portfolio (safe)</h2></div> </div> <iframe src="http://bootsnipp.com/iframe/56bAW" scrolling="no" width="900" height="1100">abc</iframe> </div> <div id="servicesxxx"> This is yrdy <br><br><br><br><br><br><br> </div> <hr> <hr> <script> $('iframe').load(function(){ $(this).contents().find("body").on('click', function(event) { alert('test'); document.getElementById('services').scrollIntoView(true); }); }); // $('iframe').attr("src","JavaScript:'iframe content'"); </script>

Related: See More

Questions / Comments: