|
|
Is it possible to add the javascript code to the web page drop down menu instead of a standard links?
Return to Recent Questions
Q:
We currentlly have a web page drop down menu that uses standard html hyperlinks to
open a new window with "_blank" 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");
Is it possible to add the javascript code to the web page drop down menu instead of a standard links? 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:
|