HTML
  Home arrow HTML arrow 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


    (Page 1 of 4 )

    The term "iframes" is short for "inline frames." Maybe you have never heard of iframes, or maybe you have avoided them because the name incorporates the "F" word, i.e. "frames," which are said to do bad things like confuse search engines. If so, this article will introduce you to a very useful and versatile web design tool that you have been missing out on. If you have already used iframes, but for only basic things, this article will show you some powerful new uses, such as remote scripting.

    Introduction

    Only basic HTML is required for this two-part article. Some knowledge of PHP and JavaScript would be helpful in understanding the more sophisticated uses of iframes that are explained, particularly in the second part, but is probably not indispensable.

    What are iframes?

    The concept is simple: an iframe is like window that you can place anywhere on your web page, through which you can see another web page. In other words, iframes allow you to embed another web page within your web page.

    An iframe is created by the HTML tag <iframe>. This tag has a required src attribute to tell the frame which URL to load, and several optional attributes, some of which we will mention as we go along. It uses a closing tag, </iframe>. A message which will only display if iframes are not supported can be placed in between the opening and closing tags like so:

    <iframe src="path/mydocument.htm">This Browser Does Not Support iframes</iframe>

    The iframe concept, and the iframe tag seem pretty simple, and they are, but the implications of the ability of an iframe to embed another URL are profound. For example, content on a remote web page displayed in the iframe, whether static or dynamically generated, can be made to appear as if it is part of your web page. We will learn more about this, and more, in this two part series.

    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 1 Hosted by Hostway
    Stay green...Green IT