In my case i have two asp pages pge1 and pge2. In asp page 1 i m having a javascript which executes on button click .In that javascript i have a for loop . When the loop starts i need to show the pge2 till the loop end and i have to close the pge2 after the loop ends. can any one help in this pls
This is not a navigation issue, instead you are using JavaScript to open another window and want to close it once the timer event is triggered in the parent page. The problem is that you cannot call a close method from the 1st page, correct? If so, and this is a stretch here because I do not know your requirements. The button on the 1st page would open the 2nd window. The 2nd page would have the timer and once the timer event fires, call the window.close method to close the 2nd window. Just a thought. page #1 -------- button click window.open() -> open page #2 page #2 -------- timer object window.close() -> close page #2