(c) 2007, DHTML-Menu.com
 
   
   
  Support
  Recent Questions
  Write To Support
 

    Is it possible to add the javascript code to the slide down menu instead of a standard links?

Return to Recent Questions


Q: We currentlly have a slide 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 slide 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:
   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. bootstrap gallery | free web editor | free website generator | free icon maker | HTML5 Video Player