# Link to html, then load doc in iframe

**URL:** <https://forum.kirupa.com/t/link-to-html-then-load-doc-in-iframe/117537>\
**Category:** Uncategorized\
**Created:** [July 28, 2004, 6:03am UTC](https://forum.kirupa.com/t/link-to-html-then-load-doc-in-iframe/117537 "2004-07-28T06:03:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prljmr](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@prljmr](https://forum.kirupa.com/u/prljmr)\
**Post date:** [July 28, 2004, 6:03am UTC](https://forum.kirupa.com/t/link-to-html-then-load-doc-in-iframe/117537/1 "2004-07-28T06:03:51Z")

</div>

I have two links (to news article #1 & news article #2) on “index.htm”. If I could get this to work, the user would be able to click on one of the two news articles, and then a new page (“news.htm”) would load, AND THEN the article of their choice would load in the iframe (called “article”) on “news.htm.”

I have looked all over for a solution and tried a whole lot of different things, but the iframe on “news.htm” always comes up blank.

(The only way I can get the iframe to load content is by using the code \<iframe src=“article1.htm”\> on the page “news.htm”. But that doesn’t help me, because I want the user to be able to pick the article of his or her choice.)

Huge thanks to anyone who can help – I’m going crazy with this.  
kristin

---

<div class="post-metadata">

**Author:** ![prljmr](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@prljmr](https://forum.kirupa.com/u/prljmr)\
**Post date:** [July 28, 2004, 6:08am UTC](https://forum.kirupa.com/t/link-to-html-then-load-doc-in-iframe/117537/2 "2004-07-28T06:08:17Z")

</div>

whoops…let’s try this again. it actually tried to display my code…

I have two links (to news article #1 & news article #2) on “index.htm”. If I could get this to work, the user would be able to click on one of the two news articles, and then a new page (“news.htm”) would load, AND THEN the article of their choice would load in the iframe (called “article”) on “news.htm.”

I have looked all over for a solution and tried a whole lot of different things, but the iframe on “news.htm” always comes up blank.

(The only way I can get the iframe to load content is by using the code iframe src=“article1.htm” on the page “news.htm”. But that doesn’t help me, because I want the user to be able to pick the article of his or her choice.)

Huge thanks to anyone who can help – I’m going crazy with this.  
kristin
