PDA

View Full Version : Not sure how this can be done.



amstew
09-10-2007, 09:09 AM
I would like to make a page that has a link to another site, that link will open on a new browser window and if the user gets to finish page on that new window the original page will show a download link.

djr33
09-10-2007, 02:15 PM
Using javascript, it's possible.

'opener' will refer to the opening window.

Something like this, though I'd need to test it to figure out the best method.

opener.location = 'thanks.htm';
opener.focus();
window.close();


Also, note that there are some security regulations dealing with external pages, from differing domains. I'm not sure how these would apply exactly in the case above. Worth knowing about, though.