jacqstewart
10-04-2002, 10:22 AM
Hi
I'm using a dhtml menu and I want to use it to open a page in a popup window. The html pages I'm opening have photographs of different sizes so I need to resize each window when it opens, but obviously, rather than having multiple windows open, I'd like to have them open in the same popup window and it resize as necessary. It's using a window.open statement within the menu item and, although it lets me add focus(), it doesn't seem to let me use return false ; within the block of code shown below.
menu.subMenus[2].addItem("Statue of<br>Liberty","window.open('newyork6.htm','','menubar=0,resizable=yes,scrollbars=0,status=0,width=300,height=400',t itlebar=0,toolbar=0)");
menu.subMenus[2].addItem("Central<br>Park","window.open('newyork2.htm','','menubar=0,resizable=yes,scrollbars=0,status=0,width=300,height=470',t itlebar=0,toolbar=0)");
Any advice would be much appreciated!!
I'm using a dhtml menu and I want to use it to open a page in a popup window. The html pages I'm opening have photographs of different sizes so I need to resize each window when it opens, but obviously, rather than having multiple windows open, I'd like to have them open in the same popup window and it resize as necessary. It's using a window.open statement within the menu item and, although it lets me add focus(), it doesn't seem to let me use return false ; within the block of code shown below.
menu.subMenus[2].addItem("Statue of<br>Liberty","window.open('newyork6.htm','','menubar=0,resizable=yes,scrollbars=0,status=0,width=300,height=400',t itlebar=0,toolbar=0)");
menu.subMenus[2].addItem("Central<br>Park","window.open('newyork2.htm','','menubar=0,resizable=yes,scrollbars=0,status=0,width=300,height=470',t itlebar=0,toolbar=0)");
Any advice would be much appreciated!!