Click to See Complete Forum and Search --> : Open a new Window(image), reload Parent whilst maintaining original position


beginnersluck
11-26-2005, 10:49 AM
Hi,

I have a blog site (crowdedbrain.co.uk) that contains a parent window and two frames(left,right). What I want to achieve is when an image is clicked on - inside a post - it will launch a new window (with a larger image), refresh the parent and then keep the new window next to the original post (the post could have been half-way down the page for example).

So far I can get a new window to open (containing the image) and get the parent to reload but when this occurs the image is still there but you are placed at the top of the parent page and not by the original location - i.e from where you clicked on the image.

Here is the code I have used....

<a onclick="parent.location.reload(true);window.open(this.href, '_blank', 'width=300,height=250,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,st atus=no,left=0,top=0'); return false" href="http://www.crowdedbrain.co.uk/.shared/image.html?/photos/uncategorized/yoda_5.jpg"><img border="0" src="http://www.crowdedbrain.co.uk/images/yoda_5.jpg" title="Yoda_5" alt="Yoda_5" style="width: 138px; height: 115px;" /></a>

Please does anyone have any idea how I can achieve my goal? :confused: