Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Using window.opener, how to reference an anchor tag.


Message #1 by "Eric" <eric@d...> on Mon, 8 Jul 2002 11:16:32 -0400
Good morning all,

I have a site where I am spawning a child window to handle a file
upload.  Once the file has been uploaded I need to close the upload
(child) window and reload the parent.  I have the code working fine;
however, being that the page is rather long, I wanted to have the user
go directly to the file management section using an HTML anchor tag.
Right now the page simply reloads and the user is brought back to the
top of the screen. 

Here is my code in its current state:

<SCRIPT LANGUAGE = javascript>
	window.opener.location.reload();
	window.close();
</SCRIPT>

I have set an anchor called: yAxis  <A NAME = yAxis>.

Any help is very much appreciated.

Regards,
Eric


  Return to Index