M
michal.podlewski
Hi All,
I have a problem with a simple (as I thought till now) thing:
I want to make a link in a child-window which would change site in the
parent-window and along with closing child window. The parent window
name is "main". A made a link like this in the child-site:
<a href="new_address.html" target="main" class="about"
onclick="javascript:main.location='new_address.html';self.close();">
change and close </a>
but it does not work.
I tried also window.close(), window.close(self) and alo put it all in
href instaed of onclick - without success. Although the page in "main"
changes to what I want, but the pop-up is still open.
Strange is that self.close() invoked without anything before it work
normally.
Do you have any idea how can I solve this problem?
Thanks in advance and best regards,
Michal
I have a problem with a simple (as I thought till now) thing:
I want to make a link in a child-window which would change site in the
parent-window and along with closing child window. The parent window
name is "main". A made a link like this in the child-site:
<a href="new_address.html" target="main" class="about"
onclick="javascript:main.location='new_address.html';self.close();">
change and close </a>
but it does not work.
I tried also window.close(), window.close(self) and alo put it all in
href instaed of onclick - without success. Although the page in "main"
changes to what I want, but the pop-up is still open.
Strange is that self.close() invoked without anything before it work
normally.
Do you have any idea how can I solve this problem?
Thanks in advance and best regards,
Michal