views:

923

answers:

1

When I run the JavaScript code below in Mozilla Firefox, the menu bar does not show:

                window.open(location.pathname + "?print=print",
                    "print-window",
                    "toolbar=yes,location=no,scrollbars=yes,menubar=yes");

What is going wrong here?

Note that I'm opening the same file (in another window), I'm just adding a parameter value to it. I don't know whether this matters.

Strangely enough, if I call:

                    window.print();

on the new window, the menu bar does show.

A: 

Have you tried menubar=1 ... or possibly menubar=true?

Chris Klepeis
menubar=1 does not work.
Paul Reiners
menubar=true also does not work.
Paul Reiners
Sorry. I take that back. menubar=1 does work. Thanks! Now I need to check whether it works with other browsers.
Paul Reiners