English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

On my website, www.randominterests.com if anyone wants to see it, i want a link to point to a specific page. I want that specific page to open in an iframe of a different page. For example.

Say this link is in index.htm and it's pointing to a page called laughs.htm. I want that laughs.htm to open inside an iframe in another html page called random.htm

So random.htm has an iframe, i want laughs.htm to open in it. I can do it very easily if the link to laughs.htm is in random.htm, but i can't figure out how to do it if the link is in index.htm


help please!!!!

2007-12-10 15:55:32 · 4 answers · asked by jeff_cougsfan 2 in Computers & Internet Programming & Design

4 answers

Pass the link as a parameter in the URL of the random.html page. Bare bones implementation...

index.html
~~~~~~~~







href="javascript:void(0);"
onclick="loadRandom('www.Gooogle.com');">
click to load






random.html
~~~~~~~~







Some content goes here...

Some content goes here...

Some content goes here...

Some content goes here...




Some content goes here...

Some content goes here...

Some content goes here...

Some content goes here...




2007-12-10 17:25:40 · answer #1 · answered by richarduie 6 · 0 0

here is your link on index.htm

Random Page Title Link

Then in random.htm add an iframe like this:



I added a width of 100%, there are other attributes you can play around with for your iframe.

Make sure you have a file called laughs.htm that the iframe will display.

Good luck!

2007-12-10 16:03:54 · answer #2 · answered by Anonymous · 0 0

If you want a link in one page to open in an iframe that is in a different page, you'll need a javascript or php solution.

See this discussion:

http://www.htmlcodetutorial.com/help/ftopic2137-0-asc-30.html

The php example at the bottom is probably your best bet.

2007-12-10 17:04:53 · answer #3 · answered by daa 7 · 0 0

Greetings from Spain! i'm in simple terms having a similar difficulty you describe. i'm utilising Avast because of the fact few years devoid of any difficulty, yet at present it is often irritating with an alert some "html:physique-inf" an infection in very almost each internet pages i attempt to navigate at, making impossible to get right of entry to a lot of them, or loading them as a replace with many bugs. it would not remember if i exploit Chrome, Explorer, or Firefox: the subject is a similar. i became questioning I had a virulent disease attack because of the fact I visited this talk board. i'm now changing my anti virus safety to AVG. i think of it incredibly is in simple terms too unacceptable for an anti virus safety, although if it incredibly is Avast. What a pity, sturdy success!

2016-11-14 09:57:31 · answer #4 · answered by joerling 4 · 0 0

fedest.com, questions and answers