Discussion Locked

JSCRIPT: Menubar items in Window.Open()

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

I'd like to know how I could disable certain File Menu items on the Browser's File menu using the Javascript Window.open() ?

I want to open a window with the menubar only containing the File menu item, containing only the Print and Close sub-menu items.

Is this possible?

Thanks!

3 replies

by madestroitsolutions

NO, sorry to dissapoint you, but you cannot do such a thing, since all the menu options AND menus are contained within a single object, which is the toolbar. The only thing you can do is remove the entire bar (File,edit,view,Favorites, tools, help).If what you want to achieve is give the user the option to print the content or close the form, then you can instead remove all the bars from the window, and provide a "Print" and "Close" button in the form, that by using Javascript activate the functions. Here is a code snippet to do it:

window.open("address.html","win","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=200,height=200");

For the print and close buttons:

Good luck!

This discussion is closed to new replies.