86
rated 0 times
[
89]
[
3]
/ answers: 1 / hits: 29192
/ 12 Years ago, fri, july 20, 2012, 12:00:00
I have to open a window when a button is clicked, as a modal dialog using JavaScript.
I have used window.open
, but it shows me two instances, the parent page and the pop-up page.
When the pop-up page is open, then do not allow the user to click on the parent page.
function openWindow() {
var w = 950;
var h = 350;
var t = 0;
var l = 0;
var scrollbars = 1;
var modal = 'yes';
var reportWindow = window.open(Search.aspx + '', '', width= + w + ,height= + h + ,left= + l + ,top= + t + ',scrollbars=' + scrollbars + 'modal' + modal);
reportWindow.focus();
}
More From » asp.net