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

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

User Comments

Title: d   
Name: d
Date: 2012-10-24 12:04:07 PM
Comment:
d
Title: Locally update a web page   
Name: Santosh
Date: 2010-05-04 3:41:59 AM
Comment:
It's an amazing and really very very helpful article. After reading this article, I have become a fan of this site.... I request you to not delete this article, as it may be very helpful to many people.
Title: updating a web page   
Name: Mrs.
Date: 2009-05-19 3:23:22 PM
Comment:
this is great
Title: Download Links Does Not Work   
Name: Tarik
Date: 2008-11-07 9:04:04 AM
Comment:
Good Article , But Please Review The Downloads Links
Title: Mr.   
Name: Joydip Kanjilal
Date: 2008-10-16 10:25:58 AM
Comment:
Excellent!
Title: how up date webpage   
Name: MUHAMMAD YOUNUS TOOR
Date: 2008-09-08 10:32:32 PM
Comment:
I WANT LEARN ABOUT WEB PAGE MAKIN G






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


©Copyright 1998-2019 ASPAlliance.com  |  Page Processed at 2019-09-21 6:01:36 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search