HTML
  Home arrow HTML arrow Page 2 - The Ins and Outs of Iframes
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

The Ins and Outs of Iframes
By: John Best
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2008-12-15

    Table of Contents:
  • The Ins and Outs of Iframes
  • iframes Questions and Answers
  • Uses of iframes
  • iframe Uses continued

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    The Ins and Outs of Iframes - iframes Questions and Answers


    (Page 2 of 4 )

    • Can iframes confuse search engines? They may be able to at least mislead them. Some of the most effective "Black Hat" SEO techniques depend on iframes. Do not rely on any content contained in iframes to be indexed and credited to your page by search engines. This does not, however, mean that you should not use iframes. Unless its purpose is to deceive the search engine, an iframe on your web page should not hurt its search engine performance; it simply may not help.

    • Can iframes be any size? Yes, even 0 by 0. The dimensions are specified by the width and height attributes. An iframe with dimensions of 0 by 0 (with frameborder set to 0) is referred to as a "hidden" iframe.

    • Can iframes be located anywhere on the page? Yes, an iframe can be positioned in the same manner as a block level HTML element using CSS and HTML techniques.

    • What kind of content can an iframe contain? An iframe can contain any kind of page or document that is accessible by a URL and viewable in a web browser, whether it is located on the same site or on a remote site.

    • If dynamic content on a page that is embedded in an iframe changes, is this change immediately reflected in the iframe contained in the parent page? Yes, when you load another page into an iframe, it isn't an image or snapshot of the other page you are seeing in the iframe; it is the actual page itself. This is a key to the use of iframes for remote scripting, which we will discuss in part two of this article.

    • Can an iframe resize itself to accommodate dynamic content of varying size? No, the size is fixed. iframes use scrollbars instead. Scrolling is controlled by the scrolling attribute. The options are yes, no, and auto, with the default being auto. If scrolling is disabled, the contained page is truncated at the borders of the iframe. This is a disadvantage of iframes for remote scripting compared to AJAX request-response techniques.

    • Are iframes supported by all browsers? Yes, all major modern browsers support iframes.

    • Do iframes have a border? An optional border can be specified by the frameborder attribute. The options are 0 and 1.

    • Do links contained on a page within an iframe redirect the parent page? No, they redirect the page in the iframe.

    • Can the page displayed within the iframe change (redirect) as the iframe is being viewed? Yes, the page within the iframe can be redirected to another URL.

    More HTML Articles
    More By John Best


       · http://vur.me/lex/acne/See the link above.The iframe resizes.
     

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek