depth
01-29-2003, 11:06 PM
alright...so this seems like a very stupid question (hope i don't get a stupid answer!)
i have some frames. the frameset window is called "master".
if a user types in a URL from outside of the framed document, i want the URL to open in the frameset, in the proper frame, called "content".
the code below seems pretty simple...but for some reason, i can't access the new window with its name, "master". very strange. i must be missing something simple, but i can't figure out what it is...
//---------
<script type="text/javascript">
if (parent.name != "master"){
newContent = window.location;
window.open("http://www.someURL.com","master","width=1025,height=400,menubar,toolbar,location,status,resizable");
//master.content.location = newContent;
window.history.back();
//master.focus();
}
</script>
//----------
note that the two lines i have commented out are the two that don't work. which are the two that reference the new window, called "master".
thanks...
i have some frames. the frameset window is called "master".
if a user types in a URL from outside of the framed document, i want the URL to open in the frameset, in the proper frame, called "content".
the code below seems pretty simple...but for some reason, i can't access the new window with its name, "master". very strange. i must be missing something simple, but i can't figure out what it is...
//---------
<script type="text/javascript">
if (parent.name != "master"){
newContent = window.location;
window.open("http://www.someURL.com","master","width=1025,height=400,menubar,toolbar,location,status,resizable");
//master.content.location = newContent;
window.history.back();
//master.focus();
}
</script>
//----------
note that the two lines i have commented out are the two that don't work. which are the two that reference the new window, called "master".
thanks...