<script>
var pathh='/Lists/ListName/Item/newifs.aspx';
function ShowDialog()
{
var options = {
url:pathh,
autoSize:true,
allowMaximize:true,
title: 'RequestName',
showClose: true,
dialogReturnValueCallback:Function.createDelegate(null, CloseCallback)
};
var dialog = SP.UI.ModalDialog.showModalDialog(options);
}
function CloseCallback(result, target) {
location.reload(true);
}
</script>
<a href="javascript:ShowDialog()">Add New Request</a>
No comments:
Post a Comment