As the child window gets closed the IFRAME redirects to another page
Posted on 2004-09-27
The parent page is composed of an IFRAME named 'f1' alongwith an ID 'frame1'. The page that reloads in IFRAME is named as "ProductList.asp". As I click on any link from the IFRAME page, a new window opens. What I want is that when I click on the button in new window, the child window gets closed, moreover the IFRAME in parent page redirects to "ListSuppliers.asp". What code shall be followed? I used the following but it didn't work out.
window.frames['f1'].src = "ListSuppliers.asp"
<input type=button value="Close Window" onClick="CloseWin()">