PDA

View Full Version : closing popup window


elyasheinin
08-10-2002, 03:00 PM
i'm opening a popup windows with:
<script>
function OpenWin(hTML)
win=window.open(hTML,"",proprties);
</script>

where properties is predefined var.

now, there more than one popup windows, so every time i'm opening a new one, i want to close the last opened.
How can i do it?

mhere
08-10-2002, 04:19 PM
It can be done by opening the new links in the same window!!!?

will this be suitable to ur need?

duniyadnd
08-10-2002, 06:00 PM
win=window.open(hTML,"give_it_a_name ",proprties);

keep the name consistent, and the window should replace itself. If you clicking on the popup window instead, and its opening YET ANOTHER window, you can use the window.close() with onClick.

hope that helped.
duniyadnd