Double link action

They have: 35 posts

Joined: Mar 1999

Hi,
I have a page with button links to an Iframe on that page. How can I load the linked page in the Iframe, AND make the main page jump to the top so the heading is in view. If a user scrolls down the main page and selects a button on the left, only half the Iframe content is visible.
URl is webzone3.com/wcc
Any ideas?

detox's picture

They have: 571 posts

Joined: Feb 2001

are you wanting to have the left nav always visible? or have the iframe pop up relative to the top of the browser window?

When I scrolled down a couple of lines and then say clicked on statistics, only half of it was visible. Assuming this to be the question try this.

have the actual h ref of the nav button go back to the top of the page then use an onClick handler to launch the iframe

If i have totally misunderstood this post then simply reply and tell me I'm an idiot!

I cringe at the thought of using frames but perhaps for usability within the constraints of your design then you might want to have your navigation and header framed...

They have: 35 posts

Joined: Mar 1999

That's exactly what I meant. I added an onclick event to go to the 'top' anchor and it works ('cept in NS6)
Thank you

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

In N6, you need to actually HAVE the anchor there in order for N6 to jump to it. Add to the page you want to have jumped to the top of and badda boom, it will work fine.

And validate, for that matter, assuming the rest of your code is right.

Smiling Suzanne

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.