making client side modal popups in asp.net pages

making client side modal popups in asp.net pages

<script language=”javascript” type=”text/javascript”>
// <!CDATA[

function btnMakeCreditcardPayment_onclick() {
    var win = window.open(‘CreditCardPayment.aspx’, ‘popWin’, ‘left=100, top=100, width=550, height=420,toolbar=no,directories=no,status=no,linemenubar=no,scrollbars=no,resizable=no ,modal=yes’, true);

    win.opener = self;
    win.focus();
    return(false);
}

function btnMakeChequePayment_onclick() {
    var win = window.open(‘ChequePayment.aspx’, ‘popWin’, ‘left=100, top=100, width=550, height=400,toolbar=no,directories=no,status=no,linemenubar=no,scrollbars=no,resizable=no ,modal=yes’, true);

    win.opener = self;
    win.focus();
    return(false);
}

// ]]>
</script>

Advertisements