Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Browswer Window moving when opening a new window

Reply
Thread Tools

Browswer Window moving when opening a new window

 
 
Allan
Guest
Posts: n/a
 
      08-05-2004
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.
 
Reply With Quote
 
 
 
 
Randy Webb
Guest
Posts: n/a
 
      08-05-2004
Allan wrote:

> 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>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Moving Estimate, Local Movers, Long Distance Moving, PackingSupplies, Storage Rental, Home Moving, Apartment Moving, Office Moving,Commercial Moving linkswanted ASP .Net 0 01-06-2008 04:45 AM
Communication between applets in seperate browswer windows? Richard Smol Java 6 12-16-2004 06:17 PM
Communication between applets in seperate browswer windows? Richard Smol Java 1 12-16-2004 03:23 PM
yahoo browswer biene2004 Computer Support 2 09-20-2004 09:07 AM
How can you offer image files as download... ...and not have browswer window open it? ScriptNFool ASP .Net 2 04-01-2004 08:04 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57