|
|
How can we add the javascript code to the down menus css instead of a link?
Return to Recent Questions
Q:
We currentlly have a menu that uses standard html hyperlinks to
open a new window with _blank as the target. Unfortunately, the
size of the window is controlled by the browser and we want to be
able to control it. The only way that we know how to do that is to
use the window.open client-side function and pass the window's
dimensions. Here is a sample of the code that would do that:
window.open("url","_blank","height=1024,width=768,status=yes,toolbar=no,menubar=no,location=no");
How can we add the javascript code to the down menus css instead of a link? Do you have any samples?
A:
You can use javascript code within menuItems, for example
["Test Window","javascript:window.open('http://www.microsoft.com','_blank','height=1024,width=768,status=yes,toolbar=no,menubar=no,location=no');", , ,'Monitor Exceptions' , ,
'0', '0',,],
Return to Recent Questions
Related:
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 23, 2006 - Is it possible that javascript drop down menus doesn't put anything on the local computer?
- Sep 26, 2006 - Firefox doesn't support the dropshadow and effects in the javascript pull down menu.
- Oct 22, 2006 - When the html submenus are over applet in https: the applet disappeared.
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
- Nov 21, 2006 - Why the javascript submenu alignment changes depending on the browser window size?
- Dec 08, 2006 - I created a custom error page for a site, but the Menu JavaScript would not display.
- Dec 09, 2006 - Is it possible to have css drop down menu items act like regular hyperlinks?
- Dec 19, 2006 - Why submenu css pop-down not OVER the other object (frame)?
- Dec 24, 2006 - Images don't appear in my vertical menu with horizontal submenus.
- Jan 01, 2007 - Could you please help me with an alignnment issue with my css dropdown menu?
|