Greetings, friends!
A browsers' right-click menu lets open a link in a new tab.
It's very useful when operating with one hand.
How to add that 'new tab' command to a context menu of an Indexmenu?
I can customize indexmenu by editing '/lib/plugins/indexmenu/scripts/contextmenu.local.js':
indexmenu_contextmenu['all']['pg']['view'].splice(0, 1,
[LANG.plugins.indexmenu.newtab, 'IndexmenuContextmenu.getid(index.config.urlbase,id)']
);
so I have a link for the particular page (an item in the IndexMenu list).
But how to open that in a new window?
I tried different Javascript commands, to add 'target=_blank', but it seems a bit complex task for me.
I can change URL of the link easily, but how to change its attribute in not a very clumsy way?
Would anyone like to solve this interesting task? ;)
Thank you.