The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> Update iframe?
post Oct 10 2006, 05:46 PM
Post #1

Group: Members
Posts: 2
Joined: 10-October 06
Member No.: 397

IFRAME SRC="" width=772 height=630 name="worldframe" frameborder="0" scrolling="no">

How would I go about updating the iframe once an option has been selected from a drop down list?

For instance when the user selects an option from a drop down list, the iframe updates to show the a page. However, if the user clicks a different option the iframe updates with to show a different page?

Any help is greatly appreciate, thanks.

EDIT: I tryed using the following, but to no avail.....

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>

<script type="text/javascript">
function update(page) {


<select id="sel" onchange="update(this.value)">
<option value="">1</option>
<option value="">2</option>
<option value="">3</option>

    WIDTH=300 HEIGHT=200>

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
post Oct 10 2006, 06:21 PM
Post #2

Don't like donuts. Don't do MySpace.

Group: WDG Moderators
Posts: 18,351
Joined: 9-August 06
Member No.: 6

You use getElementById() but there is no id. Even if you add one it doesn't work. I'm afraid I don't know why. If you refer to the frame name instead it works.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 19th August 2019 - 03:44 PM