Responsive IFrames Plugin For jQuery

File Size: 99.7KB KB
Views Total: 12746
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
Responsive IFrames Plugin For jQuery

Responsive IFrames Plugin can be used to create a  Responsive IFrame which can change its width or height as users interact with dynamic content and avoid scrollbars.

It is very lightweight, you can produce the effect only with jQuery and ResponsiveIFrames.js.

How to use it:

Include jQuery script and ResponsiveIFrames.js in the parent page

<!-- Activate responsiveness in the "child" page -->
<script src="/js/jquery.responsiveiframe.js"></script>
  var ri = responsiveIframe();
<!-- Corresponding code in the "parent" page -->
<script src="/js/jquery.js"></script>
<script src="/js/jquery.responsiveiframe.js"></script>

        $('#myIframeID').responsiveIframe({ xdomain: '*'});

Change log:


  • bugs fixed

This awesome jQuery plugin is developed by npr. For more Advanced Usages, please check the demo page or visit the official website.