I'm trying to figure out how I can get a list's add new item URL using JSOM in SharePoint 2010. This is what I have so far to get if the current user has edit access on the list.
ExecuteOrDelayUntilScriptLoaded(function()
{
var clientContext = SP.ClientContext.get_current();
var list = clientContext.get_web().get_lists().getByTitle("Shared Documents");
clientContext.load(list);
clientContext.load(list, 'EffectiveBasePermissions');
clientContext.executeQueryAsync(Function.createDelegate(this, function()
{
if(list.get_effectiveBasePermissions().has(SP.PermissionKind.editListItems))
{
// has edit permissions
}
}), Function.createDelegate(this, function(){}));
}, "sp.js");