Forum Moderators: open

Message Too Old, No Replies

PopUp Window fine, original page rests to top!

         

RISuperman

4:59 pm on Sep 3, 2003 (gmt 0)



Hey guys,

New to the board - wanted to say "Hi".

I've been doing the website thing for personal sites for about 4 years now. I do a family website with a bunch of pictures, where they can click on the small pic to see a larger pic and comment in a new window. Here's what it looks like:

<a HREF="#" onClick="window.open('c9.htm', 'newWnd', 'width=600,height=500,toolbar=0,status=0,scrollbars=0,resizable=0')">
<img src="../../images/cheyanna/chey9.jpg" alt="Donna grabs Tanya." width="160" height="121"center" valign="center"></a>

When you click on the smaller pic, the new window pops up fine, but it immediately brings you to the top of the main page again. So you have to scroll all the way back down to the next pic to click again.

Is there any way to have the main page stay exactly where it was when you clicked on the link?

Thanks for all your help. Look forward to a long lasting life on this board.

Sincerely,
Mark

nakulgoyal

9:19 pm on Sep 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Mark (RISuperman)

Welcome to WW. yes, I think that's possible. Sticky me the URL and I will see.

bcolflesh

9:23 pm on Sep 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Instead of #, make the HREF a named anchor which is placed next to your small image.