JavaScript Menu, DHTML Menu Powered By Milonic
Demo for mm_SetAsHomePage()
for use with Milonic Solutions' DHTML Menu V5

This sample page was created in reference to this thread in the "Help and Support for Version 5".

To test the function click either of the above menu items. If your browser accepts the function this will be set as your homepage, if not you will receive an alert. You will need to reset whatever homepage you now use.

To use the mm_SetAsHomePage() function:

  1. Place the following code at the top of your menu_data.js file
    function mm_setAsHomePage() 
      if (ie5 || ie55) { 
        itemObj = gmobj("el" + _itemRef); = "url(#default#homepage)"; 
        alert("Sorry, your browser does not support this function."); 
  2. You can use either the url to set the page or the clickfunction. To use the url code your aI string as shown in a to use the click function code your aI string as shown in b
    1. aI("text=Make this your Home page;url=javascript:mm_setAsHomePage();");
    2. aI("text=Make us your Home;clickfunction=mm_setAsHomePage();"); 

  3. You should test each version before uploading to your working site. Note: you should test through a web server as it will probably not work on the desktop.
DHTML Menu courtesy of Milonic Solutions
Download  mm_setAsHomePage() sample.