Showing posts with label iframe. Show all posts
Showing posts with label iframe. Show all posts

Monday, 5 October 2020

window.open in Iframe - Iframe window

 

If you want to open a window within an iframe:

  1. Create the iframe with a name.

     <iframe name="theFrame"></iframe>
    
  2. Now use the script this way:

     window.open(url, "theFrame");
    
  improve this answer   

Friday, 31 October 2014

Iframe array several of website

<script type="text/javascript">
var frames = Array(
    'http://www.sportsmanagement.my/mcfaj2014/', 14,
    'http://www.dietdietsihat.blogspot.com/', 60);
var i = 0, len = frames.length;
function ChangeSrc()
{
  if (i >= len) { i = 0; } // start over
  document.getElementById('frame').src = frames[i++];
  setTimeout('ChangeSrc()', (frames[i++]*1000));
}
window.onload = ChangeSrc;</script>

<iframe id="frame" style="width:250px; height:250px;"></iframe>

Saturday, 18 October 2014

Iframe that Responsive

<div>
    <iframe src="http://www.youtube.com/embed/4aQwT3n2c1Q" height="315" width="560" allowfullscreen="" frameborder="0">
    </iframe>
</div>

.video-container iframe {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
}


.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 35px;
    height: 0;
    overflow: hidden;
}

Submit RSSa

 rssing.com