Set content for IFRAME in New Window

This is a discussion on "Set content for IFRAME in New Window" within the JavaScript Forum section. This forum, and the thread "Set content for IFRAME in New Window 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 Feb 7th, 2007, 07:44
New Member
Join Date: Feb 2007
Location: san francisco
Age: 28
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Set content for IFRAME in New Window

HELP!

Here's the scenerio:

Page 1 (portfolio.html) contains 20 thumbnail GIFs
Page 2 (masonry.html) contains an iframe

I'd like to program the 20 GIFs so that they all change the URL to masonry.html, however, the html page which opens in the iframe is dependent on what gif the user clicks on. In other words, the GIF controls both the URL and the content of the iframe in the new webpage. Is that possible?

On a single html page, I know how to program a gif so that onClick, it loads a specific html page inside an IFRAME (onclick="frames['contentFrame'].location.href = 'iframes/elizabeth.html'; return false").

However, is there a way to program a gif on html PAGE 1 to open html PAGE 2 and load a specific html page inside the iframe (on Page 2)?

I can program them separately using MM_goToURL and the code pasted above, however, i can't get them to work together.

IF anyone can offer any insight, I would be most grateful.

Thanks in advance.
Reply With Quote

Reply

Tags
iframe, javascript

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
how can have iframe links to open in a new window? onSPOT Web Page Design 1 Mar 10th, 2008 07:43
[SOLVED] refresh a different iframe once an iframe elsewhere has loaded cosmicbdog JavaScript Forum 1 Jan 25th, 2008 01:50
Can a jsp file in an IFrame calls a javascript function outside of the IFrame jadeite100 JavaScript Forum 0 May 31st, 2007 14:29
open image in IFRAME instead of NEW WINDOW freshair JavaScript Forum 0 May 4th, 2007 18:13
css style iframe content hiropowers Web Page Design 8 Apr 22nd, 2007 10:52


All times are GMT. The time now is 04:20.


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