mckinks
11-30-2002, 03:44 PM
I'm trying to get the popup windows to open in the same window but automatically resize. I thought that setting both windows dimensions that it would work, but the second window always opens in the dimensions of the first. Can anyone tell me what I'm doing wrong? I'm pretty new to javascript, so knowing me it's probably the simplest thing. :rolleyes:
<SCRIPT language=JavaScript>
function WindowOpen1()
{
window.open('/homepage/ogllad1.htm', 'Window2', 'toolbar=no, menubar=no,resizable=no,height=456,width=674');
}
function WindowOpen2()
{
window.open('/homepage/ogllad2.htm', 'Window2', 'toolbar=no, menubar=no,resizable=no,height=496,width=674');
}
</script>
and at the links I have this:
<a onClick="WindowOpen1();return false"
href="/homepage/ogllad1.htm">
<a onClick="WindowOpen2();return false"
href="/homepage/ogllad2.htm">
here it is as it appears on my site:http://lightningbrigade.freewebsitehosting.com/homepage/report.htm I am refering to the "CLICK HERE FOR MORE INFO" links. Thanks in advance.
<SCRIPT language=JavaScript>
function WindowOpen1()
{
window.open('/homepage/ogllad1.htm', 'Window2', 'toolbar=no, menubar=no,resizable=no,height=456,width=674');
}
function WindowOpen2()
{
window.open('/homepage/ogllad2.htm', 'Window2', 'toolbar=no, menubar=no,resizable=no,height=496,width=674');
}
</script>
and at the links I have this:
<a onClick="WindowOpen1();return false"
href="/homepage/ogllad1.htm">
<a onClick="WindowOpen2();return false"
href="/homepage/ogllad2.htm">
here it is as it appears on my site:http://lightningbrigade.freewebsitehosting.com/homepage/report.htm I am refering to the "CLICK HERE FOR MORE INFO" links. Thanks in advance.