Four Ways to Locally Update a Web Page
page 2 of 12
by Xianzhong Zhu
Feedback
Average Rating: 
Views (Total / Last 10 Days): 25356/ 222

The IFrame Way

Iframe, which has been part of the HTML specification since version 4 and is supported in nearly all modern browsers, is the webpage element that creates an inline frame that contains another document. Iframe functions as a sub document within a document, or like a floating frame.  It is able to load another html document within the <iframe> tags.

The following example uses the IFRAME element and an HTML fragment to create a frame containing the main page of google.

Listing 1: An example of a minimal IFRAME

<IFRAME ID=IFrame1 FRAMEBORDER=0 SCROLLING=NO SRC="http://www.google.com">
</IFRAME>

Grammatically, the usage of IFRAME quite simulates that of div, such as you can specify the position, color and layout of them embedded inside a web page. The following table gives the commonly-used parameters for an IFrame element.

Table 1: Parameters for an HTML Iframe Element

Parameters

Comments

Src

URI (URI of frame content)

Name

CDATA (name of frame)

Longdesc

URI (link to long description)

Width

Length (frame width)

Height

Length (frame height)

Align

[ top | middle | bottom | left | right ] (frame alignment)

Frameborder

[ 1 | 0 ] (frame border)

Marginwidth

Pixels (margin width)

Marginheight

Pixels (margin height)

Scrolling

[ yes | no | auto ] (ability to scroll)

Enough already with the concept!  Let us get to the code.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 1 and 2 and type the answer here:

User Comments

Title: updating a web page   
Name: Mrs.
Date: 5/19/2009 3:23:22 PM
Comment:
this is great
Title: Download Links Does Not Work   
Name: Tarik
Date: 11/7/2008 9:04:04 AM
Comment:
Good Article , But Please Review The Downloads Links
Title: Mr.   
Name: Joydip Kanjilal
Date: 10/16/2008 10:25:58 AM
Comment:
Excellent!
Title: how up date webpage   
Name: MUHAMMAD YOUNUS TOOR
Date: 9/8/2008 10:32:32 PM
Comment:
I WANT LEARN ABOUT WEB PAGE MAKIN G






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2009 ASPAlliance.com  |  Page Processed at 11/21/2009 10:24:26 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search