Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"TEST: iframe click test"
Bootstrap 3.3.0 Snippet by
mrmccormack
3.3.0
Preview
HTML
View Full Screen
Fork
Fork this
5.2K
 
1 Fav
Post to Facebook
Tweet this
<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
Template
Material Dashboard Pro
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76