Open A Customized Window
There are times when you want to open a customized window from your DHTMLMenu. Perhaps you want to specify the window size, whether or not it has scrollbars, whether it's resizeable, etc. This can easily be accomplished by using a window.open JavaScript in the Link field under Menu Item Settings - General. There is no need to add an item condition script under Prefix or Suffix. Here is an example (each menu item opens a window with different specifications:
Here is the JavaScript used for each of the menu items:
Menu Item 1:
javascript:window.open("demo_page.html","_blank","width=800,height=600,status=no,toolbar=no,scrollbars=no")
Menu Item 2:
javascript:window.open("demo_page.html","_blank","width=600,height=400,status=no,toolbar=no,resizable=yes,scrollbars=yes")
Menu Item 3:
javascript:window.open("demo_page.html","_blank","width=800,height=400,status=yes,toolbar=yes,resizable=yes,scrollbars=yes")