Below is the javascript method that opens a popup without scrolbar or menubar or resizable etc
function openQuadPopup(val) {
var width = screen.width - 100;
var height = screen.height - 100;
var leftPos = (screen.width - width - 30) / 2;
var topPos = (screen.height - height - 30) / 2;
myWindow = window.open('TestPage.aspx?ImagePath=' + val, 'NameForPopup', 'menubar=0,resizable=0,width=' + width + ',height=' + height + "'");
myWindow.moveTo(leftPos, topPos);
}
To include scroll bars use
window.open('TestPage.aspx', '','scrollbars=yes,width=300,height=300')
No comments:
Post a Comment