Forum Moderators: phranque

Message Too Old, No Replies

opening links within an iframe

         

Dan99

11:46 pm on Oct 23, 2022 (gmt 0)

10+ Year Member Top Contributors Of The Month



I have a main web page that contains an iframe (as in, a box with containing a subsidiary html file). Inside the iframe subsidiary html, there are links. But if you try to click on those link in the iframe, they don't open. You need (I usually use Firefox) to "Open Link in New Tab" to see them. If you click on links in the main web page that aren't in the iframe, they open just fine. How can I set it up so links in an iframe will open directly?

lexipixel

6:07 pm on Nov 2, 2022 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The four "underscored" targets (_self /_blank / _parent / _top) are like reserved keywords each with a set functionality.

You can also use the target="" value to target a specific frame by assigning that name to the frame and then targeting it in the links to open within that frame.

For a simple example, see: [w3schools.com ]

.
This 31 message thread spans 2 pages: 31