Jump to top of screen

R

Robert Sheppard

Is there any way to prevent the page from jumping to the top of the screen
on a postback.

I have a table that I create dynamically with some buttons. Each time I
click on of the buttons I launch a popup window (which works fine) but my
main page jumps to the top of the screen.

This is very annoying especially if the table is long. User keeps having to
scroll down and find his place each time he clicks anything.
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

Do you need any information from the server to open the pop? Otherwise
you could skip the postback and open the popup window using only client
script, e.g. Javascript in a non-server tag:

<input type="button" value="Eat me!" onclick="window.open(...);" />
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top