I have a great working code that opens a link in the same window when I click it, it's inside a dropdown menu.
This is in javascript.
problem is that I would like it to open up in a new tab instead of the same window. How can I do this?
here is my code:
items["linkeee"] = {
"label": "mylabel",
"action": function(obj) {
openUrl('http://mypageaa.com/page' + addId);
}
};
update -- also my html looks like this:
<a href="#">mylabel</a>
BUT I don't have direct access to the html without messing stuff up. I gotta do this up there with the javascript
update
how do i combine 'http://mypageaa.com/page' + addId
to add , "_blank"
please help thanks