Problem using anchor within and iframe

Discussion in 'HTML & Website Design' started by ColeenB, Jul 11, 2009.

  1. #1
    I'm using an iframe to show a portion of a document within a document. I've used an anchor so that the document in the iframe will scroll to a certain place. My problem is that my main page scrolls to the iframe automatically when it loads. I'd rather have it load so that it's set at the top of the main page.

    Here's my iframe code:

    <iframe src ="sample.html#hp" width="80%" height="175"><p>Your browser doesn't display frames.</p> </iframe>

    Can anyone help me?
     
    ColeenB, Jul 11, 2009 IP