var options =
{
url: "http://siteUrl/_layouts/Page.aspx?ID=6",
width: 800,
height: 600,
title: 'Attach File',
};
SP.UI.ModalDialog.showModalDialog(options);
I have tried this javascript code. But it gives me error. Error in url of modal popup .It will redirect to this following url: res://ieframe.dll/http_404.htm#SiteURL?IsDlg=1