How to call the XML form inside the Menu

Good day, Just a quick question how to call the XML form inside the

. I wanted that if i click the File > New, the form will appear together again with the menu bar.


Init from xml file
// Form
	var myForm;
	function doOnLoad() {
		myForm = new dhtmlXForm("myForm");
// Top Menu Navigation Bar	
	var myMenu;
	function initMenu() {
		myMenu = new dhtmlXMenuObject("menuObj");
		myMenu.loadFromHTML("menuData", true);

You need to cause event “onClick”.
Please, check this tutorial: … event.html

Example code:
myMenu.attachEvent(“onClick”, function(id){
if( id ==“new” )

Thank you so much!