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

    Is it possible to add the javascript code to the javascript example instead of a standard links?

Return to Recent Questions


Q: We currentlly have a javascript example 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 javascript example 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 parallax | creare sito gratis | gratis website builder | top website builder | bootstrap forms