Browswer Window moving when opening a new window

A

Allan

Hi all,

I have a very long page with a lot of text.

Some of this content have links that open a new brower window with
more details. However, the new window opens, the original window goes
back to the top of the page which is annoying because then you have to
scroll down again to be where you let of.

Any ideas how to resolve that?

Thanks in advance for your help

A.S.
 
R

Randy Webb

Allan said:
Hi all,

I have a very long page with a lot of text.

Some of this content have links that open a new brower window with
more details. However, the new window opens, the original window goes
back to the top of the page which is annoying because then you have to
scroll down again to be where you let of.

Any ideas how to resolve that?

Yes, return false from your onclick handler:

<a href="page.html" onclick="functionName();return false">Your text</a>
 

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

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top