|
|
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?
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
- 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)?
- Jan 01, 2007 - Could you please help me with an alignnment issue with my css dropdown menu?
- Jan 09, 2007 - I'm still can't understand how to make drop down menus
- Jan 20, 2007 - vertical drop down menus don't work with Internet Explorer.
- Feb 01, 2007 - Can I use this CSS menu to create pulldown menus on a Mac (Mac OSX).
- Feb 02, 2007 - The background images for dhtml drop down menus are missing in the browser
- Feb 12, 2007 - There seems to be a 'glitch' with my transparent drop down menus when I use Firefox.
|