Forum Moderators: open

Message Too Old, No Replies

Javascript opens pages but loses position in list?

         

cdgeorge

12:23 am on Oct 6, 2004 (gmt 0)

10+ Year Member



Currently I am using javascript to open another page in a window using the following code:

MM_openBrWindow('Villas/DetailsPP124(1,397,655).htm','DETAILSPP124','scrollbars=yes,width=790,height=590');MM_preloadImages('Villas/PP124.jpg')

When this page is opened then closed again, the browser starts at the top of the originating browser page rather than at the point on the browser page where I clicked the button. This is annoying where long lists are on a page, you get to the bottom of a list, click the button to see the details using this javascript, close the window and it goes back to the top of the list rather than anchoring itself from where I clicked the button from. Can you do this in javascript?

Bernard Marx

12:34 am on Oct 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's likely that you are using a link to launch the function.
Can you post the code for the link itself. You'll need to put a
void
operator, or a
return false
somewhere.

cdgeorge

5:45 pm on Oct 6, 2004 (gmt 0)

10+ Year Member



I've been rooting around for the code you are after and it seems like the only javascript code I can find is the code I sent you which simply opens that browser page. So I guess the problem is I have none of the code you suggested in there at all. How would I put that code into context so it would work? Sorry, I know little about javascript, Dreamweaver does it all for me.

Rambo Tribble

1:44 am on Oct 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I believe what Mr. Marx would like to see is the HTML involved with the link in the originating page.