DelphiFAQ Home Search:
General :: Web publishing :: JavaScript :: Document


This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Featured Article

Move an IFRAME 10 pixels to the right


I need to move an IFRAME 10 pixels to the right. Is that possible in JavaScript?


Thanks to CSS you can position your IFRAME like all other HTML elements through the style.left property. The code sample from below moves the IFRAME titled 'anIframe' 10 pixels to the right.

 function moveRight () {
   var ifr = document.all ? 
               document.all['anIframe'] : 
               document.getElementById('anIframe'); = (parseInt( + 10) + 'px';

Generated 8:01:42 on Oct 30, 2020