I'm using <IFRAME> in a middle column of a static HTML page. I'm calling a second HTML page in the <IFRAME> that includes a web form. The form is quite long and as a result I have to scroll down to get to the submit button. When I submit the form, my browser window stays focused at the point where my submit button was on the previous page. My "thank you" message loads at the top of the page and I need to scroll up tp see it. This also happens with standard links. Does anyone know of a way to tell the resulting screen to focus at top like an anchor tag does? I've thought of using the "onload" function in the <body> tag but cannot get it to work.

Any help would be appreciated.

Thank you!

Well, if you're submitting the page, you're submitting it to a server-side process, which in turn has to generate a response. You can generate any response you like...

I don't quite understand the problem. Are you by chance using ASP.NET with "Smart Navigation" turned on? If so, turn it off.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.