[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reload original doc from window?

>I have a function that opens a new window.  In that window I have a function to
>close the window.  I need the function to also reload the original document in
>the main window.  How can I accomplish this?

well, you might try something like this

window.location.href = document.location

You might try putting it in something like this

<INPUT TYPE="Button" NAME="Reload this page" onClick="window.location.href =

or something like that, i haven't tried it actually, so you might try some
kind of hybrid of this code. hope you get the general idea.

I used something similar to this in my Help system on my own page. when
clicking then INDEX button, it actually loads the help index page in another
frame. check it out.

Note: My help system has been known to crash with Macs.

Christian Lanctot
e-mail: kristian@generation.net
Web   : http://www.generation.net/~kristian/

For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/