Forum Moderators: open

Message Too Old, No Replies

opening a pop-up from javascript menu

         

fiuOY

9:19 pm on Nov 14, 2005 (gmt 0)

10+ Year Member



Hello,

I've created a javascript menu in fireworks but one of the links needs to pop up a new window of dimenssions 500x400. Does anybody know the correct syntaxt for that?

Here's a piece of the code where I would call the pop-up


mm_menu_0927134526_3.addMenuItem("Check Status of an Outage","location='#'");
mm_menu_0927134526_3.addMenuItem("Storm Safety Tips","xyz.com'");

The one that has the pound is where the pop-up would be called.

Thank you very much

cephus

9:46 pm on Nov 14, 2005 (gmt 0)

10+ Year Member



Don't know if this helps or not... I'm not familar with fireworks... I maybe wasting your time.

window.open("testwindow1.htm", "blank","toolbar=no,width=250,height=250")

fiuOY

10:13 pm on Nov 14, 2005 (gmt 0)

10+ Year Member



ok ok, this is a start.

I put it in a couple different ways and it gave me errors, except like this...


mm_menu_0927134526_3.addMenuItem("Check Status of an Outage", window.open("testwindow1.htm", "blank","toolbar=no,width=250,height=250"));
mm_menu_0927134526_3.addMenuItem("Storm Safety Tips","location=XYZ.com'");

but now it pops the window on load. How can I change it so that it loads the window on click.