Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:57

Help on menu-Can i put command to bookmark Us/Set as Homepag


Poster: acsodeputy
Dated: Friday January 14 2005 - 3:53:25 GMT

Does anyone know what i can do to make it where I can put in a command to bookmark us or set us as homepage? I can't use javascript, or if I can i dunno how. I've tried several times.

thanks
Dustin
http://www.fbc-lc.org


Poster: fredlongworthhighschool
Dated: Friday January 14 2005 - 10:53:58 GMT

I've just tried this, it seems to work:

1) This is the menu entry:

Code:
aI("text=BOOKMARK US!;url=javascript:addtofav(window.location.href,document.title);");


2) Add this function at the end of your MENU_DATA.JS file, just before the DRAWMENUS();

Code:
function addtofav(linkUrl,linkTitle){
   if (!document.all) {
      alert('Please hit ctrl-d to bookmark this page');
   }
   else external.AddFavorite(linkUrl,linkTitle);
}


Edited 17/1: Missed close curly bracket!