2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by tinymark
0

Lets start by making an object.

var menu = {};
menu['page name without extension'] = 'Full url';
menu['a different page'] = 'Full url';
menu['and another'] = 'Full url';

Now you have two ways to work with the object. The first is menu and the second is menu.'the page name'. You set the value either way as menu = value; or menu.'the page name' = value;

I haven't tested this, so you may need to change things a little, but I think it's right.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.