Forum Moderators: open

Message Too Old, No Replies

anchors and i-frames

anchors

         

davidd

6:38 pm on Aug 23, 2003 (gmt 0)

10+ Year Member



Hi,

I am trying to figure out if there is a way to load a page into an iframe and take directly to an anchor point?

Thank-you!

David

tedster

7:54 pm on Aug 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What happens if you use the named anchor in the iframe tag's src attribute?

<iframe src="page.html#name1">

I've always thought this would work as long as there's a named anchor in the iframed document <a name="name1"></a>. I know it works for links that target the iframe, but I never tested it with the initially loaded document.

davidd

8:39 pm on Aug 23, 2003 (gmt 0)

10+ Year Member



tedster,

tried it works great, thank-you!

David

tedster

8:49 pm on Aug 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm glad it works for you. And by the way, please excuse my manners -- Welcome to WebmasterWorld!