Huitzilopochtli
Programmer
Hi
This script seems to work when I want to go back to my home page (from a pop-up window):
<script language="JavaScript">
function open_main(page) {
window_handle = window.open(page,'main');
return false;
}
</script>
<a href="index.html" onClick="return open_main('index.html')">home</a>
but it leaves the pop-up window still open. Do I just insert window.close() after the onClick?? Can't seem to get it to work.
Secondly, the page which generated the pop-up window is also still open. How would I close that at the same time as closing the pop-up?
Cheers for any ideas!
Huitzil
This script seems to work when I want to go back to my home page (from a pop-up window):
<script language="JavaScript">
function open_main(page) {
window_handle = window.open(page,'main');
return false;
}
</script>
<a href="index.html" onClick="return open_main('index.html')">home</a>
but it leaves the pop-up window still open. Do I just insert window.close() after the onClick?? Can't seem to get it to work.
Secondly, the page which generated the pop-up window is also still open. How would I close that at the same time as closing the pop-up?
Cheers for any ideas!
Huitzil