I have a JS function that creates a new popup window.
function newTab(center, section, tab) {
currentItem.numWindows += 1;
var title = "Window #" + currentItem.numWindows;
var tabsObject = [center, section, tab];
currentItem.windows[currentItem.numWindows] = window.open('popup.php', title, toolbar = 0, menubar = 0, navigationbar = 0);
currentItem.windows[currentItem.numWindows].variable = tabsObject;
}
I want to create a button that looks like a button but acts like a link. To clarify, when the user right clicks on the button I need it to open up the standard browser options like "open in new window" or "open in new tab".
Instead of this leading to a standard "otherpage.html" I need it to call my JS function (which in turn creates the popup).
I have searched and I keep finding examples that look like a link but don't act like a link.
I have tried IameLemon's suggestion,
<a onclick="someFunction();"><button type="button">Text of Some Page</button></a>
this code works however it does not allow the user to right click and access the standard options that come with a link (the ability to open in a new tab or window)
Thanks!