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.
|
|
|
|
|
![]() |
||
Set content for IFRAME in New Window
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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. |
|
|
![]() |
| Tags |
| iframe, javascript |
| Thread Tools | |
|
|
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 |