I have a few custom actions running on both the edit and new forms of a specific list in SharePoint 2013 Standard.

I'd like these custom actions, which are a link to a web url, to open in a new tab or window when clicked, rather than navigate away from the current page I am looking at. Is this possible to do?

Many thanks,

1 Answer 1



You can do it simply by calling JavaScript in CommandAction.. and in JavaScript, try this:

var win = window.open('https://stackoverflow.com/', '_blank');
    //Browser has allowed it to be opened
    //Broswer has blocked it
    alert('Please allow popups for this site');

Refer to the following if you don't know how to call JavaScript in Ribbon Action:

CommandUIHandler Element

How to add a ribbon item using CustomAction in sharepoint 2010?

Reference a javascript script in a ribbon custom action xml

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.