I have a window previously created in javascript named master_window.
I have another window (which is not the parent) which I want to load a page into.
I have tried:
<script>
master_window.main.location.href = "/index.php";
</script>
But it will not work. Any ideas?
Thanks
Jeanco
08-06-2003, 04:25 PM
out of curiosity, why do you have so many windows opening at once? Surely there is a more professional and efficient way of doing this.
The way I see it a site should not need more then 2 windows open.
EpcNetworks
08-10-2003, 06:43 PM
<script>
function winopen(){
window.open("main.htm", "newWindow", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=200,height=260")
}
</script>
I guess this is what you are looking for. Just call the winopen function to load a new window.
DarktidesNET
08-10-2003, 11:00 PM
Your best bet would to be giving the window.open command a var:
var master_window = window.open(...);
master_window.location = 'url.html';
I forgot the command to find it, but think it's possible.