I have a line of code on my navbar that opens a control panel in a small newWindow.
<a href="javascript: newWindow('booking.html')">Control Panel</a>
In the control panel window I have a few links, a sample one of which is
<A HREF=" TARGET="main">Make a new booking</A>.
Fine, the link works, it opens the new URL in the main frame, but the control panel window doesnt close. It remains open in the background behind the main window. Normally, that wouldnt matter, but if later another control panel is called, it goes into that hidden window behind the main window, and to the viewer it appears that nothing has happened.
How do I close my control panel when one of its links is activated?
<a href="javascript: newWindow('booking.html')">Control Panel</a>
In the control panel window I have a few links, a sample one of which is
<A HREF=" TARGET="main">Make a new booking</A>.
Fine, the link works, it opens the new URL in the main frame, but the control panel window doesnt close. It remains open in the background behind the main window. Normally, that wouldnt matter, but if later another control panel is called, it goes into that hidden window behind the main window, and to the viewer it appears that nothing has happened.
How do I close my control panel when one of its links is activated?