djfenom
09-06-2002, 10:46 AM
I'm currently using this code to do my popups:
<script language="javascript">
<!--
var win1 = new Object;
function pop(page,top,left,width,height,resize,scroll,fullscreen){
closepop();
win1 = eval("window.open('" + page + "','popup','top=" + top + ",left=" + left + ",width=" + width + ",height=" + height + ",resizable=" + resize + ",scrollbars=" + scroll + "');")
}
function closepop(){
if (win1.closed == false)
{win1.close();}
}
//-->
</script>
<a href="javascript:window.parent.pop('popup.html#lite','15','15','488','440','no','yes');">
However I've now come across a problem, I've got a popup that is a frameset and I need to use anchors referenced from the page where you click for the popup. The frameset has 3 frames and I need to use the anchors in the middle frame. So when you click on the link for the popup, it goes to #anchor in the middle frame of the popup.
Thanks in advance.
Chris
<script language="javascript">
<!--
var win1 = new Object;
function pop(page,top,left,width,height,resize,scroll,fullscreen){
closepop();
win1 = eval("window.open('" + page + "','popup','top=" + top + ",left=" + left + ",width=" + width + ",height=" + height + ",resizable=" + resize + ",scrollbars=" + scroll + "');")
}
function closepop(){
if (win1.closed == false)
{win1.close();}
}
//-->
</script>
<a href="javascript:window.parent.pop('popup.html#lite','15','15','488','440','no','yes');">
However I've now come across a problem, I've got a popup that is a frameset and I need to use anchors referenced from the page where you click for the popup. The frameset has 3 frames and I need to use the anchors in the middle frame. So when you click on the link for the popup, it goes to #anchor in the middle frame of the popup.
Thanks in advance.
Chris