Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jump to the middle of the page

Status
Not open for further replies.

jadec

MIS
Jan 22, 2004
87
US
Hi Guys,
I have two asp pages. First page is kind of long. The user
cann't see the lower portion unless they roll down the page. What I want to do is that when the user come back from second page, The screen jump to the middle of the page. Does anybody can help me that please?

Thanks!
 
Place this tag in the middle of your page:

<a name="mid">

and refer to your first page as

<a href="yourpage.asp#mid">
 
Hi mbiro,

I tried that way. But not working. Because I use
Code:
response.redirect urlstring
and my urlstring contain parameters. Like :
Code:
urlstring= "myprogram.asp?pono=xxxx&status=xxxx".
I tried add anchor name at the end of the string? like:
Code:
urlstring= "myprogram.asp?pono=xxxx&status=xxxx#podtl".
Doesn't work. Any idea?

Thanks!
 
You need an '&' before the '#' sign

urlstring= "myprogram.asp?pono=xxxx&status=xxxx&#podtl".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top