Saturday, April 11, 2009

Open Model Popup Window In JavaScript

function OpenModelPopupWindow(Path,Height,Width)
{

var ParmA = '';
var MyArgs = new Array(ParmA);
var w = screen.availWidth;
var h = screen.availHeight;
var Wdth = (w-Width);
var Hgt = (h-Height);

var WinSettings = "help:no;center:yes;resizable:no;dialogHeight:" + Hgt +"px;dialogWidth:" + Wdth + "px;status=no;"

window.showModalDialog(Path,MyArgs, WinSettings );



}

No comments: