onepieceking
Well-known member
- Joined
- Sep 20, 2006
- Messages
- 64
- Programming Experience
- 1-3
Hi,
I am facing a problem of not being able to close a browser window.
1) I have a web page (test1.aspx) that has 2 asp.net buttons (open and close). This web page also have a meta tag that refresh the page every 2 sec.
2) When I click on the "open" button, I will use a RegisterStartupScript to use javascript to open a child window (test2.aspx). "test2.aspx" also has a meta tag that refreshes the page every 2 sec.
3) When I clicked on the "close" button in "test1.aspx", it is supposed to close the child window.
Because of the refreshing, I think the referencing between the 2 pages is gone, therefore using javascript to close is impossible.
I tried to use GetProcessByName("iexplore") to find all the browsers. However, it seems that the child window is not found. Why is that so?
Is there a way for me to close the child window?
I am facing a problem of not being able to close a browser window.
1) I have a web page (test1.aspx) that has 2 asp.net buttons (open and close). This web page also have a meta tag that refresh the page every 2 sec.
2) When I click on the "open" button, I will use a RegisterStartupScript to use javascript to open a child window (test2.aspx). "test2.aspx" also has a meta tag that refreshes the page every 2 sec.
3) When I clicked on the "close" button in "test1.aspx", it is supposed to close the child window.
Because of the refreshing, I think the referencing between the 2 pages is gone, therefore using javascript to close is impossible.
I tried to use GetProcessByName("iexplore") to find all the browsers. However, it seems that the child window is not found. Why is that so?
Is there a way for me to close the child window?