can u make it so that the page loads into the iFrame? (from menu)

This is a discussion on "can u make it so that the page loads into the iFrame? (from menu)" within the JavaScript Forum section. This forum, and the thread "can u make it so that the page loads into the iFrame? (from menu) are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 13th, 2006, 22:40
New Member
Join Date: Apr 2006
Age: 17
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question can u make it so that the page loads into the iFrame? (from menu)

http://www.freewebs.com/rachy06/index.htm

this is my page. I want to know, if you click on a link on the menu, can u make it so that the page loads into the iFrame? do you just set the link target to the name of the iFrame???

----------------------------------------------------------------------

This is the code for each menu thing.

Menu1=new Array("Home","http://www.cfab.co.uk/","",0,20,139);


how do i tell it to open the link in the iFrame????
Reply With Quote

  #2 (permalink)  
Old Apr 14th, 2006, 16:00
Up'n'Coming Member
Join Date: Mar 2006
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Re: can u make it so that the page loads into the iFrame? (from menu)

You can give the iframe an ID, just use the same name as the name attribute and then you can use this piece of code:

Code: Select all
document.getElementById('content').src=Menu1[1]
content = id of iframe
Menu1[1] = this is where the URL goes, since you use an array for building the menu,as shown in your post, I used it as an example.

Hope this works for you.
Reply With Quote
Reply

Tags
page, loads, iframe, menu

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to make a simple horizontal css menu without using lists? jonnymorris Web Page Design 9 Sep 21st, 2007 13:59
How to make a CSS Dropdown menu? Zonglars Web Page Design 3 Jul 20th, 2007 15:05
how to prevent page jumping while click on iframe kathirnk Web Page Design 1 Apr 16th, 2007 14:05
CGI page loads only halfway, parameters causing problems k.n. PHP Forum 3 May 13th, 2005 01:40
Page only loads correctly once in IE, incorrectly once in FF Malkalypse JavaScript Forum 5 Apr 19th, 2005 11:26


All times are GMT. The time now is 19:25.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43